From 32bf69ea7ab06119cba1c44a97be54dfc6e262f9 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 10 Oct 2003 17:13:37 +0000 Subject: [PATCH] Fix Bug #23221 Pear installer - extension re-install segfault --- pear/PEAR/Installer.php | 5 +++++ 1 file changed, 5 insertions(+) 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)"); -- 2.50.1