1
0
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:
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);
if (ZEND_NUM_ARGS() != 0) {
zend_string *new_val = zval_try_get_string(err);
if (UNEXPECTED(!new_val)) {
return;
RETURN_THROWS();
}
do {