cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Sun, 14 Nov 2004 18:01:44 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3159@lists.php.net to get a copy of this message
helly Sun Nov 14 13:01:44 2004 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: - Bugix #30783: Apache crash when using ReflectionFunction::getStaticVariables() http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.138&r2=1.139&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.138 ZendEngine2/zend_reflection_api.c:1.139 --- ZendEngine2/zend_reflection_api.c:1.138 Wed Nov 3 16:18:44 2004 +++ ZendEngine2/zend_reflection_api.c Sun Nov 14 13:01:44 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.138 2004/11/03 21:18:44 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.139 2004/11/14 18:01:44 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -1331,7 +1331,7 @@ /* 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 *)); } }

« previous php.zend-engine.cvs (#3159) next »