mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Do not create the registry obj at Installer object creation
(it's problematic when pear install -R <DIR> is used)
This commit is contained in:
parent
b25c652f95
commit
d335b38a37
@ -117,7 +117,7 @@ class PEAR_Installer extends PEAR_Common
|
||||
parent::PEAR_Common();
|
||||
$this->setFrontendObject($ui);
|
||||
$this->debug = $this->config->get('verbose');
|
||||
$this->registry = &new PEAR_Registry($this->config->get('php_dir'));
|
||||
//$this->registry = &new PEAR_Registry($this->config->get('php_dir'));
|
||||
}
|
||||
|
||||
// }}}
|
||||
@ -801,6 +801,9 @@ class PEAR_Installer extends PEAR_Common
|
||||
*/
|
||||
function checkDeps(&$pkginfo, &$errors)
|
||||
{
|
||||
if (empty($this->registry)) {
|
||||
$this->registry = &new PEAR_Registry($this->config->get('php_dir'));
|
||||
}
|
||||
$depchecker = &new PEAR_Dependency($this->registry);
|
||||
$error = $errors = '';
|
||||
$failed_deps = $optional_deps = array();
|
||||
|
Loading…
Reference in New Issue
Block a user