mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
dont use function to fetch default exception ce
This commit is contained in:
parent
8486505651
commit
9076eb26c7
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ ZEND_METHOD(exception, __construct)
|
||||||
if (execute_data->called_scope) {
|
if (execute_data->called_scope) {
|
||||||
ce = execute_data->called_scope;
|
ce = execute_data->called_scope;
|
||||||
} else {
|
} 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);
|
zend_error(E_EXCEPTION | E_ERROR, "Wrong parameters for %s([string $message [, long $code [, Throwable $previous = NULL]]])", ce->name->val);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue