#46002 [Opn->Asn]: phpize fails when directory contains spaces
| From: | jani@php.net | Date: | Tue, 14 Apr 2009 13:49:57 +0000 |
| Subject: | #46002 [Opn->Asn]: phpize fails when directory contains spaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135808@lists.php.net to get a copy of this message | ||
ID: 46002
Updated by: jani@php.net
Reported By: marco at harddisk dot is-a-geek dot org
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: *
-PHP Version: 5.2.6
+PHP Version: 5.*, 6CVS (2009-04-14)
-Assigned To:
+Assigned To: jani
New Comment:
This is more than phpize problem. There are several other places in the
build system that do not support spaces in paths. I'm trying to fix it
now..
Previous Comments:
------------------------------------------------------------------------
[2008-09-05 13:59:20] marco at harddisk dot is-a-geek dot org
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 this bug report at http://bugs.php.net/?id=46002&edit=1