com php-src: Add missing RETURN_THROWS(): ext/reflect ion/php_reflection.c
| From: | Máté Kocsis | Date: | Thu, 30 Jul 2020 12:55:13 +0000 |
| Subject: | com php-src: Add missing RETURN_THROWS(): ext/reflect ion/php_reflection.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112458@lists.php.net to get a copy of this message | ||
Commit: 5f25618f8362b3f6cf502d8dd7b3cef7e0313f9c
Author: Máté Kocsis <kocsismate@woohoolabs.com> Thu, 30 Jul 2020 14:55:13 +0200
Parents: 0d330e1a022d536de8a679d11dc8ec6f9fd64be3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5f25618f8362b3f6cf502d8dd7b3cef7e0313f9c
Log:
Add missing RETURN_THROWS()
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 1d6d6b7a8d..decb8d5e0a 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3103,6 +3103,7 @@ ZEND_METHOD(ReflectionMethod, getClosure)
} else {
if (!obj) {
zend_argument_value_error(1, "cannot be null for non-static methods");
+ RETURN_THROWS();
}
if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) {