Browse Source

Fix Bug #23221 Pear installer - extension re-install segfault

PEAR_1_4DEV
Tomas V.V.Cox 23 years ago
parent
commit
32bf69ea7a
  1. 5
      pear/PEAR/Installer.php

5
pear/PEAR/Installer.php

@ -1154,6 +1154,11 @@ class PEAR_Installer extends PEAR_Common
$this->log(1, "\nBuild process completed successfully");
foreach ($built as $ext) {
$bn = basename($ext['file']);
list($_ext_name, ) = explode('.', $bn);
if (extension_loaded($_ext_name)) {
$this->raiseError("Extension '$_ext_name' already loaded. Please unload it ".
"in your php.ini file prior to install or upgrade it.");
}
$dest = $this->config->get('ext_dir') . DIRECTORY_SEPARATOR . $bn;
$this->log(1, "Installing '$bn' at ext_dir ($dest)");
$this->log(3, "+ cp $ext[file] ext_dir ($dest)");

Loading…
Cancel
Save