|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-27 08:00 UTC] mj@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
If make fails when installing a PECL package with 'pear install' the error won't be reported to the user and it will say 'install ok: ...' in the end even though the package wasn't installed ok, the extension failed to build and hence wasn't copied to the extension directory but the rest of the files in the package (like the documentation) are copied. If the user has set a higher verbosity level than the default one, it's possible to notice the error by watching the output during the build process. The below patch corrects this. --- Builder.php.org Mon Mar 17 14:08:48 2003 +++ Builder.php Mon Mar 17 14:08:53 2003 @@ -252,9 +252,13 @@ } foreach ($to_run as $cmd) { $err = $this->_runCommand($cmd, $callback); - if (PEAR::isError($err) && !$err) { + if (PEAR::isError($err)) { chdir($old_cwd); return $err; + } + if (!$err) { + chdir($old_cwd); + return $this->raiseError("`$cmd' failed"); } } if (!($dp = opendir("modules"))) {