Clarify that return throws

This commit is contained in:
Nikita Popov 2020-03-30 16:27:38 +02:00
parent 8a2ce27bba
commit fbe19a6eb7

View file

@ -515,9 +515,8 @@ ZEND_FUNCTION(error_reporting)
old_error_reporting = EG(error_reporting); old_error_reporting = EG(error_reporting);
if (ZEND_NUM_ARGS() != 0) { if (ZEND_NUM_ARGS() != 0) {
zend_string *new_val = zval_try_get_string(err); zend_string *new_val = zval_try_get_string(err);
if (UNEXPECTED(!new_val)) { if (UNEXPECTED(!new_val)) {
return; RETURN_THROWS();
} }
do { do {