mirror of
https://github.com/php/php-src.git
synced 2026-04-03 06:02:23 +02:00
Clarify that return throws
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user