diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 20:44:29 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 21:10:24 +0100 |
commit | aadd3aaed902a8f21c11984687a4e3d414a2caed (patch) | |
tree | 0bfab8aacc7044d2ed66ce86d8c92c22721ec97d /ext/reflection/php_reflection.c | |
parent | bbcfa66e06110d8256595e644378a5358dda3558 (diff) | |
download | php-git-aadd3aaed902a8f21c11984687a4e3d414a2caed.tar.gz |
Use RETURN_THROWS() in various places
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index a97331d53a..240ea4473c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1352,7 +1352,7 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c if (EG(exception)) { zval_ptr_dtor(&reflector); - return; + RETURN_THROWS(); } if (result == FAILURE) { zval_ptr_dtor(&reflector); @@ -5185,7 +5185,7 @@ ZEND_METHOD(reflection_class, getExtensionName) zend_class_entry *ce; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } GET_REFLECTION_OBJECT_PTR(ce); @@ -6300,7 +6300,7 @@ ZEND_METHOD(reflection_reference, getId) if (!REFLECTION_G(key_initialized)) { if (php_random_bytes_throw(&REFLECTION_G(key_initialized), 16) == FAILURE) { - return; + RETURN_THROWS(); } REFLECTION_G(key_initialized) = 1; |