summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2014-05-21 18:33:55 (GMT)
committerElan Ruusamäe2014-05-21 18:33:55 (GMT)
commit079244a29ba9b4e351f525f2ed204f63e095728c (patch)
tree458f3be242cad28cbb9c35de2bba9d6e91a11f9c
parent4754372c3cbf9d66329a5069ebf2fab799c0c9e8 (diff)
downloadphp-pear-PEAR-auto/th/php-pear-PEAR-1.9.4-5.zip
php-pear-PEAR-auto/th/php-pear-PEAR-1.9.4-5.tar.gz
improve pear error message (give info what php version is)auto/th/php-pear-PEAR-1.9.4-5
-rw-r--r--ext-check.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext-check.patch b/ext-check.patch
index d0a9b7c..c3f7784 100644
--- a/ext-check.patch
+++ b/ext-check.patch
@@ -9,7 +9,7 @@
+// caused by missing extension
+foreach (array('pcre', 'zlib', 'xml') as $ext) {
+ if (!extension_loaded($ext)) {
-+ error_log("$argv[0] requires PHP extension $ext.");
++ error_log("pear requires PHP extension '$ext' for ".PHP_VERSION);
+ exit(1);
+ }
+}