|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-27 16:32 UTC] bjori@php.net
[2009-03-13 16:53 UTC] sixd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 06:00:01 2025 UTC |
Description: ------------ When trying to install or upgrade a package using pear install pecl/xxxx The pear return the following error message : ERROR: `phpize' failed If I build the module by hand without using install it works. /opt/php/bin/pear download pecl/xxxx tar xzpvf xxxx.tar.gz cd xxxx phpize make all ./configure \ --with-php-config=.../php-config After some research I found a bug in function PEAR_Builder::_runCommand() from PEAR/Builder.php who return a bad exitcode from pclose(). One more time compile PHP using enable-sigchild cause trouble with pclose() return code (-1). Reproduce code: --------------- See also http://pear.php.net/bugs/bug.php?id=1852 bug in function PEAR_Builder::_runCommand() $ /opt/php/bin/pear install pecl/zip downloading zip-1.0.tgz ... Starting to download zip-1.0.tgz (4,930 bytes) .....done: 4,930 bytes 3 source files, building running: phpize ERROR: failed to run `phpize' Expected result: ---------------- AFTER PATCHED PEAR/Builder.php or compile PHP without enable-sigchild. --- /opt/php/lib/php/PEAR/Builder.php 2006-04-26 16:18:12.000000000 +0200 +++ /opt/php/lib/php/PEAR/Builder.php 2006-04-27 11:56:13.201667500 +0200 @@ -432,6 +432,7 @@ $callback[0]->debug = $olddbg; } $exitcode = @pclose($pp); + $exitcode = 0; return ($exitcode == 0); } $ strace /opt/php/bin/php -C -q -d include_path=/opt/php/lib/php -d output_buffering=1 /opt/php/lib/php/pearcmd.php install pecl/zip2> after.txt downloading zip-1.0.tgz ... Starting to download zip-1.0.tgz (4,930 bytes) .....done: 4,930 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 building in /var/tmp/pear-build-root/zip-1.0 running: /tmp/tmpbJ5ZjW/zip-1.0/configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed ... Actual result: -------------- $ strace /opt/php/bin/php -C -q -d include_path=/opt/php/lib/php -d output_buffering=1 /opt/php/lib/php/pearcmd.php install pecl/zip2> before.txt downloading zip-1.0.tgz ... Starting to download zip-1.0.tgz (4,930 bytes) .....done: 4,930 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 ERROR: `phpize' failed