From: moisadoru at gmail dot com Operating system: Ubuntu linux 9.10alpha3 64bit PHP version: 6SVN-2009-08-16 (snap) PHP Bug Type: *Compile Issues Bug description: configure fails if PHP source folder path contains spaces
Description: ------------ If you extract the sources snapshot inside a folder that has spaces in the path, the configure fails with a message similar to this: "checking for PDO includes... test: 1: /media/Disc: unexpected operator" I extracted the sources into the "/media/Disc 1/php6" folder. Inside the configure.log file there is a reference to configure:67842 and something about not finding "php_pdo_driver.h" Here is my patch --- /home/user/php6.0-200908152030/configure.original +++ /home/user/php6.0-200908152030/configure @@ -67839,11 +67839,11 @@ echo $ac_n "checking for PDO includes""... $ac_c" 1>&6 echo "configure:67842: checking for PDO includes" >&5 - if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + if test -f "$abs_srcdir/include/php/ext/pdo/php_pdo_driver.h"; then pdo_inc_path=$abs_srcdir/ext - elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + elif test -f "$abs_srcdir/ext/pdo/php_pdo_driver.h"; then pdo_inc_path=$abs_srcdir/ext - elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + elif test -f "$prefix/include/php/ext/pdo/php_pdo_driver.h"; then pdo_inc_path=$prefix/include/php/ext fi Reproduce code: --------------- This is my configure command: ./configure --with-apxs2=/usr/bin/apxs2 --with-mysql --prefix=/opt/php6 --with-regex --with-libxml-dir=/usr/lib --with-openssl=/usr/lib --with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-enchant=/usr/lib --enable-exif --enable-ftp --with-gd --enable-gd-native-ttf --with-gettext --with-gmp --with-mhash --with-imap --with-imap-ssl --enable-intl --enable-mbstring --with-mcrypt --with-mssql --with-mysql --with-mysqli --enable-embedded-mysqli --enable-pcntl --with-pspell --with-libedit --with-readline --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --with-xmlrpc --with-xsl --enable-zip --with-openssl=/usr --with-enchant=/usr --with-kerberos --enable-embedded-mysqli=shared --with-pdo-mysql=shared Expected result: ---------------- It should configure just fine Actual result: -------------- "checking for PDO includes... test: 1: /media/Disc: unexpected operator" -- Edit bug report at http://bugs.php.net/?id=49270&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49270&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49270&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49270&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49270&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49270&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49270&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49270&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49270&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49270&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49270&r=support Expected behavior: http://bugs.php.net/fix.php?id=49270&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49270&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49270&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49270&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49270&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49270&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49270&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49270&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49270&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49270&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49270&r=mysqlcfg