From 7e93de101ff2c3924472640844895334889f0dab Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 13 Jan 2015 09:33:15 +0300 Subject: Handle run-time cache for static properties directly in executor. Removed cache_slot argument in zend_std_get_static_property() and zend_std_unset_static_property(). --- ext/reflection/php_reflection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index bd8f468358..7d271930ef 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3474,7 +3474,7 @@ ZEND_METHOD(reflection_class, getStaticPropertyValue) GET_REFLECTION_OBJECT_PTR(ce); zend_update_class_constants(ce); - prop = zend_std_get_static_property(ce, name, 1, NULL); + prop = zend_std_get_static_property(ce, name, 1); if (!prop) { if (def_value) { RETURN_ZVAL(def_value, 1, 0); @@ -3505,7 +3505,7 @@ ZEND_METHOD(reflection_class, setStaticPropertyValue) GET_REFLECTION_OBJECT_PTR(ce); zend_update_class_constants(ce); - variable_ptr = zend_std_get_static_property(ce, name, 1, NULL); + variable_ptr = zend_std_get_static_property(ce, name, 1); if (!variable_ptr) { zend_throw_exception_ex(reflection_exception_ptr, 0, "Class %s does not have a property named %s", ce->name->val, name->val); -- cgit v1.2.1