PEAR likes to have this GLOBAL set.
authorGunnar Wrobel <p@rdus.de>
Sun, 3 Oct 2010 17:41:48 +0000 (19:41 +0200)
committerGunnar Wrobel <p@rdus.de>
Sun, 3 Oct 2010 17:45:52 +0000 (19:45 +0200)
components/lib/Components/Module/PearPackageXml.php

index 0340672..4fab5bc 100644 (file)
@@ -80,6 +80,10 @@ implements Components_Module
         $pear = new PEAR();
         $pear->setErrorHandling(PEAR_ERROR_DIE);
 
+        if (!isset($GLOBALS['_PEAR_Config_instance'])) {
+            $GLOBALS['_PEAR_Config_instance'] = false;
+        }
+
         $package = PEAR_PackageFileManager2::importOptions(
             $package_file,
             array(