#815 [NEW]: Pear after-installation configuration mistake

From: Date: Fri, 20 Feb 2004 19:14:26 +0000
Subject: #815 [NEW]: Pear after-installation configuration mistake
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25752@lists.php.net to get a copy of this message
From: cristiano at atech dot br Operating system: Windows PHP version: 4.3.4 PHP Bug Type: Bug System Bug description: Pear after-installation configuration mistake Description: ------------ The "Web Frontend of the PEAR Installer" file index.php has an error at line 76 where a back-slash (it's a Windows system) is scaping a single quote and causing the error: Parse error: parse error, unexpected T_STRING in c:\webapps\public_html\go-pear\index.php on line 76 The solution is to scape the backslash or use forward-slashes insted. Reproduce code: --------------- if ($env=getenv('PHP_PEAR_PHP_BIN')) { define("PHP_PEAR_PHP_BIN",$env); } else { putenv('PHP_PEAR_PHP_BIN=c:\webapps\public_html\go-pear\'); // the line above has the backslash whish is escaping the single quote } Expected result: ---------------- Front end for Pear Web administration. Actual result: -------------- Parse error: parse error, unexpected T_STRING in c:\webapps\public_html\go-pear\index.php on line 76 -- Edit bug report at http://pear.php.net/bugs/bug.php?id=815&edit=1 --

« previous php.pear.dev (#25752) next »