diff options
author | Marcus Boerger <helly@php.net> | 2004-11-14 18:01:44 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-11-14 18:01:44 +0000 |
commit | 95ff205e6c4339028a8771492b41e909909c6a55 (patch) | |
tree | 2e8721f17ede8231ffcf8ac51b449ee789a8df45 /ext/reflection/php_reflection.c | |
parent | f85a11f2803b859e3c03d2c197108a00488936fc (diff) | |
download | php-git-95ff205e6c4339028a8771492b41e909909c6a55.tar.gz |
- Bugix #30783: Apache crash when using ReflectionFunction::getStaticVariables()
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index f19e0b72a9..771d4101a4 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1331,7 +1331,7 @@ ZEND_METHOD(reflection_function, getStaticVariables) /* Return an empty array in case no static variables exist */ array_init(return_value); - if (fptr->op_array.static_variables != NULL) { + if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) { 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 *)); } } |