cvs: ZendEngine2(PHP_5_0) / zend_execute.c /tests bug30889.phpt php-src NEWS

From: Date: Tue, 26 Apr 2005 13:23:09 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_execute.c /tests bug30889.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3594@lists.php.net to get a copy of this message
dmitry Tue Apr 26 09:23:09 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug30889.phpt Modified files: /php-src NEWS /ZendEngine2 zend_execute.c Log: Fixed bug #30889 (Conflict between __get/__set and ++ operator) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.349&r2=1.1760.2.350&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1760.2.349 php-src/NEWS:1.1760.2.350 --- php-src/NEWS:1.1760.2.349 Tue Apr 26 05:27:04 2005 +++ php-src/NEWS Tue Apr 26 09:23:06 2005 @@ -50,6 +50,7 @@ - Fixed bug #31502 (Wrong deserialization from session when using WDDX serializer). (Dmitry) - Fixed bug #31363 (broken non-blocking flock()). ian at snork dot net +- Fixed bug #30889 (Conflict between __get/__set and ++ operator). (Dmitry) - Fixed bug #30833 (array_count_values() modifying input array). (Tony) - Fixed bug #30819 (Better support for LDAP SASL bind). (Jani) - Fixed bug #30702 (cannot initialize class variable from class constant). http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.652.2.23&r2=1.652.2.24&ty=u Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.652.2.23 ZendEngine2/zend_execute.c:1.652.2.24 --- ZendEngine2/zend_execute.c:1.652.2.23 Mon Apr 18 03:24:25 2005 +++ ZendEngine2/zend_execute.c Tue Apr 26 09:23:07 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.652.2.23 2005/04/18 07:24:25 dmitry Exp $ */ +/* $Id: zend_execute.c,v 1.652.2.24 2005/04/26 13:23:07 dmitry Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -1270,6 +1270,7 @@ if (!have_get_ptr) { zval *z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_RW TSRMLS_CC); + zval *z_copy; if (z->type == IS_OBJECT && Z_OBJ_HT_P(z)->get) { zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC); @@ -1282,9 +1283,14 @@ } *retval = *z; zendi_zval_copy_ctor(*retval); - incdec_op(z); + ALLOC_ZVAL(z_copy); + *z_copy = *z; + zendi_zval_copy_ctor(*z_copy); + INIT_PZVAL(z_copy); + incdec_op(z_copy); z->refcount++; - Z_OBJ_HT_P(object)->write_property(object, property, z TSRMLS_CC); + Z_OBJ_HT_P(object)->write_property(object, property, z_copy TSRMLS_CC); + zval_ptr_dtor(&z_copy); zval_ptr_dtor(&z); } http://cvs.php.net/co.php/ZendEngine2/tests/bug30889.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug30889.phpt +++ ZendEngine2/tests/bug30889.phpt

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