Bug #16644 [Com]: pear.bat returns syntax error when parenthesis are in install path.

From: Date: Sat, 12 May 2012 21:30:24 +0000
Subject: Bug #16644 [Com]: pear.bat returns syntax error when parenthesis are in install path.
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8659@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=16644&edit=1 ID: 16644 Comment by: tklingenberg@lastflood.com Reported By: bwaters at solutionsbywaters dot com Summary: pear.bat returns syntax error when parenthesis are in install path. Status: Closed Type: Bug Package: PEAR Operating System: Vista-64bit Package Version: 1.9.0 PHP Version: 5.3.0 Assigned To: dufuz Roadmap Versions: New Comment: X-Ref: https://pear.php.net/bugs/bug.php?id=19402 Previous Comments: ------------------------------------------------------------------------ [2010-03-29 01:42:15] danielc Bug 16596 marked duplicate of this. ------------------------------------------------------------------------ [2010-03-29 00:35:23] dufuz -Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks a lot for the patch! Confirmed that fixed it on XP and the fix will be included in PEAR 1.9.1 ------------------------------------------------------------------------ [2010-03-29 00:33:35] dufuz -Summary: pear returns syntax error when parenthesis are in install path. +Summary: pear.bat returns syntax error when parenthesis are in install path. ------------------------------------------------------------------------ [2009-09-25 17:13:52] bwaters Fixed in pear.bat changed quoting of include_path directive at the end of the file to "include_path='%VARIABLE%'" The double quotes get it through the windows shell and the single quotes are used by php. The actual line now reads. "%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d safe_mode=0 -d open_basedir="" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d register_argc_argv="On" -d "include_path='%PHP_PEAR_INSTALL_DIR%'" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 ------------------------------------------------------------------------ [2009-09-25 17:04:31] bwaters Description: ------------ When installed under C:\Program Files (x86)\ pear returns syntax error because the include_path directive is not properly quoted Test script: --------------- C:\Program Files(x86)\Zend\ZendServer\bin>pear Expected result: ---------------- list of commands.... Actual result: -------------- Alert box form php thrown - Syntax Error, unexpected '(' in Unknown on Line 14 ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=16644&edit=1

« previous php.pear.bugs (#8659) next »