summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-01-13 09:33:15 +0300
committerDmitry Stogov <dmitry@zend.com>2015-01-13 09:33:15 +0300
commit7e93de101ff2c3924472640844895334889f0dab (patch)
treef1ab640eaf9edc67da0b2f16a28eaf394725aae4 /ext/reflection/php_reflection.c
parentd810cf816bdeea6133c773241c8804f1d347c560 (diff)
downloadphp-git-7e93de101ff2c3924472640844895334889f0dab.tar.gz
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().
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 2 insertions, 2 deletions
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);