mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
add checks for extensions that must be loaded
This commit is contained in:
parent
f7ef84c32d
commit
f4eb5095a6
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue