Skip to content

Commit b23c865

Browse files
committed
Use RETURN_THROWS() in a few places
1 parent 82f9e00 commit b23c865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/reflection/php_reflection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static void _class_string(smart_str *str, zend_class_entry *ce, zval *obj, char
390390
_class_const_string(str, ZSTR_VAL(key), c, ZSTR_VAL(sub_indent));
391391
if (UNEXPECTED(EG(exception))) {
392392
zend_string_release(sub_indent);
393-
return;
393+
RETURN_THROWS();
394394
}
395395
} ZEND_HASH_FOREACH_END();
396396
}
@@ -1802,7 +1802,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getStaticVariables)
18021802
}
18031803
ZEND_HASH_FOREACH_VAL(ht, val) {
18041804
if (UNEXPECTED(zval_update_constant_ex(val, fptr->common.scope) != SUCCESS)) {
1805-
return;
1805+
RETURN_THROWS();
18061806
}
18071807
} ZEND_HASH_FOREACH_END();
18081808
zend_hash_copy(Z_ARRVAL_P(return_value), ht, zval_add_ref);
@@ -4503,7 +4503,7 @@ ZEND_METHOD(ReflectionClass, getConstant)
45034503
GET_REFLECTION_OBJECT_PTR(ce);
45044504
ZEND_HASH_FOREACH_PTR(&ce->constants_table, c) {
45054505
if (UNEXPECTED(zval_update_constant_ex(&c->value, ce) != SUCCESS)) {
4506-
return;
4506+
RETURN_THROWS();
45074507
}
45084508
} ZEND_HASH_FOREACH_END();
45094509
if ((c = zend_hash_find_ptr(&ce->constants_table, name)) == NULL) {

0 commit comments

Comments
 (0)