$_PEAR now defined globally as new PEAR, so no static calls are made

This commit is contained in:
Mikael Nordfeldth
2013-09-23 22:27:17 +02:00
parent 8205c56e25
commit 9d3abc3600
4 changed files with 30 additions and 13 deletions

View File

@@ -174,4 +174,5 @@ function PEAR_ErrorToPEAR_Exception($err)
throw new PEAR_Exception($err->getMessage());
}
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'PEAR_ErrorToPEAR_Exception');
/* global */ $_PEAR = new PEAR;
$_PEAR->setErrorHandling(PEAR_ERROR_CALLBACK, 'PEAR_ErrorToPEAR_Exception');