dont use function to fetch default exception ce

This commit is contained in:
Anatol Belski 2015-06-18 00:21:38 +02:00
parent 8486505651
commit 9076eb26c7

View file

@ -248,7 +248,7 @@ ZEND_METHOD(exception, __construct)
if (execute_data->called_scope) {
ce = execute_data->called_scope;
} else {
ce = zend_get_exception_base(getThis());
ce = default_exception_ce;
}
zend_error(E_EXCEPTION | E_ERROR, "Wrong parameters for %s([string $message [, long $code [, Throwable $previous = NULL]]])", ce->name->val);
return;