mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
PEAR::raiseError() can be called statically - don't assume $this will be
there!
This commit is contained in:
parent
84cdabcec0
commit
2b9e767822
@ -366,7 +366,7 @@ class PEAR
|
||||
$message = $message->getMessage();
|
||||
}
|
||||
|
||||
if (sizeof($this->_expected_errors) > 0 && in_array($code, end($this->_expected_errors))) {
|
||||
if (isset($this) && isset($this->_expected_errors) && sizeof($this->_expected_errors) > 0 && in_array($code, end($this->_expected_errors))) {
|
||||
$mode = PEAR_ERROR_RETURN;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user