bool PEAR_Config::setRegistry (
PEAR_Registry|false &$reg
, string $layer = 'user'
)
Use this to override the automatic registry creation performed whenever the
php_dir
configuration variable is modified.
If noRegistry()
has been called, this call will be ignored and FALSE returned. In addition, it is
not possible to set the registry for the ftp
layer.
&$reg
The PEAR_Registry that will be used, or false to reset the registry.
$layer
This must be either user
or system
throws no exceptions thrown
This function can not be called statically.