mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Clarify that return throws
This commit is contained in:
parent
8a2ce27bba
commit
fbe19a6eb7
1 changed files with 1 additions and 2 deletions
|
@ -515,9 +515,8 @@ ZEND_FUNCTION(error_reporting)
|
|||
old_error_reporting = EG(error_reporting);
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
zend_string *new_val = zval_try_get_string(err);
|
||||
|
||||
if (UNEXPECTED(!new_val)) {
|
||||
return;
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue