From 6cb6c044992414fc8d985c0c24ca6f7a59d2706d Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 27 Nov 2015 11:32:38 +0800 Subject: Fixed bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6) --- ext/reflection/php_reflection.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index faced0572c..72df8b5901 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3858,6 +3858,7 @@ ZEND_METHOD(reflection_class, setStaticPropertyValue) "Class %s does not have a property named %s", ZSTR_VAL(ce->name), ZSTR_VAL(name)); return; } + ZVAL_DEREF(variable_ptr); zval_ptr_dtor(variable_ptr); ZVAL_COPY(variable_ptr, value); } -- cgit v1.2.1