add checks for extensions that must be loaded

This commit is contained in:
Greg Beaver 2005-08-20 18:31:29 +00:00
parent f7ef84c32d
commit f4eb5095a6

View file

@ -9,6 +9,19 @@ include_once 'PEAR/Installer.php';
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);