summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-08-17 11:54:34 +0000
committerDmitry Stogov <dmitry@php.net>2005-08-17 11:54:34 +0000
commit976edd47e26d02ecbe807ae4a6e5255f94e5e6a0 (patch)
treef78421e6cb773499c0f0c1e8016a44cc3119197f /ext/reflection/php_reflection.c
parent5516735c8828eb17f08159d69c115306ff91bffd (diff)
downloadphp-git-976edd47e26d02ecbe807ae4a6e5255f94e5e6a0.tar.gz
Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 2bbd91bc98..89ed94e8a1 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1373,6 +1373,7 @@ ZEND_METHOD(reflection_function, getStaticVariables)
/* Return an empty array in case no static variables exist */
array_init(return_value);
if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) {
+ zend_hash_apply_with_argument(fptr->op_array.static_variables, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC);
zend_hash_copy(Z_ARRVAL_P(return_value), fptr->op_array.static_variables, (copy_ctor_func_t) zval_add_ref, (void *) &tmp_copy, sizeof(zval *));
}
}