php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46002 phpize fails when directory contains spaces
Submitted: 2008-09-05 13:59 UTC Modified: 2009-04-20 15:04 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: marco at harddisk dot is-a-geek dot org Assigned: jani (profile)
Status: Wont fix Package: Compile Failure
PHP Version: 5.*, 6CVS (2009-04-14) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 14 = ?
Subscribe to this entry?

 
 [2008-09-05 13:59 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-14 13:49 UTC] jani@php.net
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.. 
 [2009-04-20 15:04 UTC] jani@php.net
Unfortunately fixing this requires fixing several 3rd party tools as well. And as we can not control those, I've added a sanity check to phpize to not allow continuing if paths contain whitespace.

Easy workaround: Create symlink under path without spaces if you can not rename it. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC