[PEAR-BUG] Bug #18209 [NEW]: Problem with go-pear.php
[email protected] ("dave at litehausconsulting dot com") Fri, 21 Jan 2011 20:32:03 +0000 (GMT)
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <[email protected]> |
From: #666d901fc4e33e8ceec
Operating system: Windows
Package version:
PHP version: 5.3.5
Package: Documentation
Bug Type: Bug
Bug description: Problem with go-pear.php
Description:
------------
I downloaded and tried to run go-pear.php after removing the php code in
the beginning that prevents execution of the script. When I try to run the
script, I get "Parse error: syntax error, unexpected ';' in
F:\xampplite\htdocs\go-pear.php on line 50". The file I am trying to
execute is attached.
My purpose in attempting to update my pear installation is to install
PHPUnit. I get an error on pear install saying the installation needs
installer 1.9.1 and I have 1.9.0. I am obviously not experienced with
pear.
Thanks for any help you can provide.
Dave
Test script:
---------------
--- Snip comments above Only non-comment is <?php
$sapi_name = php_sapi_name();
$safe_mode = (bool)ini_get('safe_mode');
if (!$safe_mode) {
set_time_limit(0);
}
@ob_end_clean();
ob_implicit_flush(true);
define('WEBINSTALLER', ($sapi_name != 'cli' &&
!(substr($sapi_name,0,3)=='cgi' &&
!isset($_SERVER['GATEWAY_INTERFACE'])))); // <== LINE 50
ini_set('track_errors', true);
ini_set('html_errors', WEBINSTALLER);
ini_set('magic_quotes_runtime', false);
error_reporting( E_ALL & ~E_NOTICE);
define('WINDOWS', (substr(PHP_OS, 0, 3) == 'WIN'));
define('GO_PEAR_VER', '1.1.2');
define('WIN32GUI', !WEBINSTALLER && WINDOWS && $sapi_name=='cli' &&
which('cscript'));
/*
* See bug #23069
*/
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=18209&edit=1
--