mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
* abort install when an extension fails to build (patch by ja at
morrdusk dot net)
This commit is contained in:
parent
ecef1df39c
commit
9e21b2eee4
@ -252,10 +252,14 @@ class PEAR_Builder extends PEAR_Common
|
||||
}
|
||||
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"))) {
|
||||
chdir($old_cwd);
|
||||
|
Loading…
Reference in New Issue
Block a user