summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-01-01 16:52:48 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-01-01 16:52:48 +0100
commitb23c865d15357d07fcf40e7e391e37ff77b5e7f6 (patch)
treec237276a2208bd7402598cd75799bb9652e5f6ff /ext/reflection/php_reflection.c
parent82f9e004da91311dbe94e9a867f7fd6e4574adec (diff)
downloadphp-git-b23c865d15357d07fcf40e7e391e37ff77b5e7f6.tar.gz
Use RETURN_THROWS() in a few places
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index a782a3ef0f..f7ec9f748c 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -390,7 +390,7 @@ static void _class_string(smart_str *str, zend_class_entry *ce, zval *obj, char
_class_const_string(str, ZSTR_VAL(key), c, ZSTR_VAL(sub_indent));
if (UNEXPECTED(EG(exception))) {
zend_string_release(sub_indent);
- return;
+ RETURN_THROWS();
}
} ZEND_HASH_FOREACH_END();
}
@@ -1802,7 +1802,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getStaticVariables)
}
ZEND_HASH_FOREACH_VAL(ht, val) {
if (UNEXPECTED(zval_update_constant_ex(val, fptr->common.scope) != SUCCESS)) {
- return;
+ RETURN_THROWS();
}
} ZEND_HASH_FOREACH_END();
zend_hash_copy(Z_ARRVAL_P(return_value), ht, zval_add_ref);
@@ -4503,7 +4503,7 @@ ZEND_METHOD(ReflectionClass, getConstant)
GET_REFLECTION_OBJECT_PTR(ce);
ZEND_HASH_FOREACH_PTR(&ce->constants_table, c) {
if (UNEXPECTED(zval_update_constant_ex(&c->value, ce) != SUCCESS)) {
- return;
+ RETURN_THROWS();
}
} ZEND_HASH_FOREACH_END();
if ((c = zend_hash_find_ptr(&ce->constants_table, name)) == NULL) {