Skip to content

Commit fbe19a6

Browse files
committed
Clarify that return throws
1 parent 8a2ce27 commit fbe19a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,8 @@ ZEND_FUNCTION(error_reporting)
515515
old_error_reporting = EG(error_reporting);
516516
if (ZEND_NUM_ARGS() != 0) {
517517
zend_string *new_val = zval_try_get_string(err);
518-
519518
if (UNEXPECTED(!new_val)) {
520-
return;
519+
RETURN_THROWS();
521520
}
522521

523522
do {

0 commit comments

Comments
 (0)