From: Tomas V.V.Cox Date: Fri, 10 Oct 2003 17:13:37 +0000 (+0000) Subject: Fix Bug #23221 Pear installer - extension re-install segfault X-Git-Tag: RELEASE_1_3b3~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32bf69ea7ab06119cba1c44a97be54dfc6e262f9;p=php Fix Bug #23221 Pear installer - extension re-install segfault --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 257e00bbd1..184cc25727 100644 --- a/pear/PEAR/Installer.php +++ b/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)");