From: marco at harddisk dot is-a-geek dot org Operating system: Win XP SP2 (Cygwin) PHP version: 5.2.6 PHP Bug Type: Unknown/Other Function Bug description: phpize fails when directory contains spaces
Description: ------------ phpize does not escape spaces properly when running autoconf, this leads to autoconf not found-error. In line 102: if test ! -x "`$php_shtool path $PHP_AUTOHEADER`"; then and 114: if test ! -x "`$php_shtool path $PHP_AUTOHEADER`"; then something doesn't get escaped properly. (Yes, I know there are two different bug reports with same issue, but the code lines are different) Reproduce code: --------------- $ mkdir ~/directory\ foo $ cd ~/directory\ foo $ tar -xf ~/pecl.extension.tar $ cd name_of_ext-0.1 $ phpize Expected result: ---------------- phpize generates the necessary files to build extension Actual result: -------------- $ phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/bin/phpize: line 106: /home/Marco/directory: No such file or directory Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. -- Edit bug report at http://bugs.php.net/?id=46002&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46002&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46002&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46002&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46002&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46002&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46002&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46002&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46002&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46002&r=support Expected behavior: http://bugs.php.net/fix.php?id=46002&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46002&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46002&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46002&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46002&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46002&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46002&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46002&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46002&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46002&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46002&r=mysqlcfg