cvs: ZendEngine2(PHP_5_1) / zend_reflection_api.c /tests bug32981.phpt php-src NEWS

From: Date: Wed, 17 Aug 2005 11:54:34 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_reflection_api.c /tests bug32981.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4025@lists.php.net to get a copy of this message
dmitry Wed Aug 17 07:54:34 2005 EDT Modified files: (Branch: PHP_5_1) /php-src NEWS /ZendEngine2 zend_reflection_api.c /ZendEngine2/tests bug32981.phpt Log: Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.17&r2=1.2027.2.18&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.17 php-src/NEWS:1.2027.2.18 --- php-src/NEWS:1.2027.2.17 Tue Aug 16 08:01:40 2005 +++ php-src/NEWS Wed Aug 17 07:54:32 2005 @@ -50,6 +50,8 @@ - Fixed bug #33558 (warning with nested calls to functions returning by reference). (Dmitry) - Fixed bug #33326 (Cannot build extensions with phpize on Macosx). (Jani) +- Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 + seg fault). (Dmitry) - Fixed bug #32139 (SOAP client does not auto-handle base64 encoding). (Ilia) - Fixed bug #32010 (Memory leak in mssql_fetch_batch). (fmk) - Fixed bug #29334 (win32 mail() provides incorrect Date: header). (Jani) http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.164.2.1&r2=1.164.2.2&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.164.2.1 ZendEngine2/zend_reflection_api.c:1.164.2.2 --- ZendEngine2/zend_reflection_api.c:1.164.2.1 Thu Aug 11 17:16:20 2005 +++ ZendEngine2/zend_reflection_api.c Wed Aug 17 07:54:33 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.164.2.1 2005/08/11 21:16:20 tony2001 Exp $ */ +/* $Id: zend_reflection_api.c,v 1.164.2.2 2005/08/17 11:54:33 dmitry Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -1373,6 +1373,7 @@ /* 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 *)); } } http://cvs.php.net/diff.php/ZendEngine2/tests/bug32981.phpt?r1=1.1&r2=1.1.4.1&ty=u Index: ZendEngine2/tests/bug32981.phpt diff -u ZendEngine2/tests/bug32981.phpt:1.1 ZendEngine2/tests/bug32981.phpt:1.1.4.1 --- ZendEngine2/tests/bug32981.phpt:1.1 Thu May 26 08:22:18 2005 +++ ZendEngine2/tests/bug32981.phpt Wed Aug 17 07:54:34 2005 @@ -28,7 +28,7 @@ [0]=> array(1) { ["enabled"]=> - UNKNOWN:0 + bool(true) } } ===DONE===

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