com web/rmtools: Be more resilient: script/pecl.php
| From: | Christoph Michael Becker | Date: | Thu, 15 Oct 2020 13:27:09 +0000 |
| Subject: | com web/rmtools: Be more resilient: script/pecl.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28816@lists.php.net to get a copy of this message | ||
Commit: 450ab890e418196db2e854317dfdcc659a6a05ce
Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 15 Oct 2020 15:27:09 +0200
Parents: da9fd19695c8bb23671180d192b476f1acf5c80a
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=450ab890e418196db2e854317dfdcc659a6a05ce
Log:
Be more resilient
PECL builds do not generate stats, so we must not assume they do.
Changed paths:
M script/pecl.php
Diff:
diff --git a/script/pecl.php b/script/pecl.php
index 3b6d4aa..37994f3 100644
--- a/script/pecl.php
+++ b/script/pecl.php
@@ -295,7 +295,7 @@ foreach ($builds as $build_name) {
$stats = $build->getStats();
- if ($stats['error'] > 0) {
+ if (isset($stats['error']) && $stats['error'] > 0) {
$error_log_fname = $log_base . '/error-' . $ext->getPackageName() .
'.txt';
file_put_contents($error_log_fname, $build->compiler_log_parser->getErrors());
}