cvs: php-src(PHP_4_4) /pear install-pear.php

From: Date: Sat, 20 Aug 2005 18:32:24 +0000
Subject: cvs: php-src(PHP_4_4) /pear install-pear.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-33567@lists.php.net to get a copy of this message
cellog Sat Aug 20 14:32:24 2005 EDT Modified files: (Branch: PHP_4_4) /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.6.2.14&r2=1.6.2.14.4.1&ty=u Index: php-src/pear/install-pear.php diff -u php-src/pear/install-pear.php:1.6.2.14 php-src/pear/install-pear.php:1.6.2.14.4.1 --- php-src/pear/install-pear.php:1.6.2.14 Sun Jan 25 20:26:43 2004 +++ php-src/pear/install-pear.php Sat Aug 20 14:32:24 2005 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.14 2004/01/26 01:26:43 pajoye Exp $ */ +/* $Id: install-pear.php,v 1.6.2.14.4.1 2005/08/20 18:32:24 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);

« previous php.cvs (#33567) next »