cvs: php-src(PHP_5_1) /pear install-pear.php
| From: | Greg Beaver | Date: | Sat, 20 Aug 2005 18:31:31 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /pear install-pear.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33566@lists.php.net to get a copy of this message | ||
cellog Sat Aug 20 14:31:31 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/pear install-pear.php
Log:
add checks for extensions that must be loaded
http://cvs.php.net/diff.php/php-src/pear/install-pear.php?r1=1.15&r2=1.15.6.1&ty=u
Index: php-src/pear/install-pear.php
diff -u php-src/pear/install-pear.php:1.15 php-src/pear/install-pear.php:1.15.6.1
--- php-src/pear/install-pear.php:1.15 Thu Aug 14 16:14:33 2003
+++ php-src/pear/install-pear.php Sat Aug 20 14:31:29 2005
@@ -1,6 +1,6 @@
<?php
-/* $Id: install-pear.php,v 1.15 2003/08/14 20:14:33 derick Exp $ */
+/* $Id: install-pear.php,v 1.15.6.1 2005/08/20 18:31:29 cellog Exp $ */
$pear_dir = dirname(__FILE__);
ini_set('include_path', $pear_dir);
@@ -9,6 +9,19 @@
include_once 'PEAR/Registry.php';
include_once 'PEAR/Frontend/CLI.php';
+$a = true;
+if (!PEAR::loadExtension('xml')) {
+ $a = false;
+ echo "[PEAR] xml extension is required\n";
+}
+if (!PEAR::loadExtension('pcre')) {
+ $a = false;
+ echo "[PEAR] pcre extension is required\n";
+}
+if (!$a) {
+ return -1;
+}
+
$force = false;
$install_files = array();
array_shift($argv);