[php-src] master: reflection: use Z_PARAM_OBJECT_OR_NULL instead of Z_PARAM_OBJECT_EX
| From: | Gina Peter Banyard | Date: | Tue, 24 Nov 2026 11:43:37 +0000 |
| Subject: | [php-src] master: reflection: use Z_PARAM_OBJECT_OR_NULL instead of Z_PARAM_OBJECT_EX | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-144096@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-11-24T11:43:19Z
Commit: https://github.com/php/php-src/commit/5e3d0abf117175318e8efe390384c247e10009dd
Raw diff: https://github.com/php/php-src/commit/5e3d0abf117175318e8efe390384c247e10009dd.diff
reflection: use Z_PARAM_OBJECT_OR_NULL instead of Z_PARAM_OBJECT_EX
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index b4d27eb97e37..c7268b2f66ea 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -5848,7 +5848,7 @@ ZEND_METHOD(ReflectionProperty, getValue)
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_OBJECT_EX(object, 1, 0)
+ Z_PARAM_OBJECT_OR_NULL(object)
ZEND_PARSE_PARAMETERS_END();
GET_REFLECTION_OBJECT_PTR(ref);
@@ -6281,7 +6281,7 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_OBJECT_EX(object, 1, 0)
+ Z_PARAM_OBJECT_OR_NULL(object)
ZEND_PARSE_PARAMETERS_END();
GET_REFLECTION_OBJECT_PTR(ref);