svn: /php/php-src/ branches/PHP_5_3/ext/spl/spl_array.c trunk/ext/spl/spl_array.c
| From: | Dmitry Stogov | Date: | Tue, 22 Sep 2009 07:54:06 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/spl/spl_array.c trunk/ext/spl/spl_array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60459@lists.php.net to get a copy of this message | ||
dmitry Tue, 22 Sep 2009 07:54:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288551
Log:
Fixed ext/spl/tests/arrayObject_magicMethods2.phpt
Changed paths:
U php/php-src/branches/PHP_5_3/ext/spl/spl_array.c
U php/php-src/trunk/ext/spl/spl_array.c
Modified: php/php-src/branches/PHP_5_3/ext/spl/spl_array.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/spl/spl_array.c 2009-09-22 07:41:16 UTC (rev 288550)
+++ php/php-src/branches/PHP_5_3/ext/spl/spl_array.c 2009-09-22 07:54:06 UTC (rev 288551)
@@ -700,6 +700,7 @@
}
if (intern->debug_info->nApplyCount == 0) {
+ zend_hash_clean(intern->debug_info);
zend_hash_copy(intern->debug_info, intern->std.properties, (copy_ctor_func_t)
zval_add_ref, (void *) &tmp, sizeof(zval *));
storage = intern->array;
Modified: php/php-src/trunk/ext/spl/spl_array.c
===================================================================
--- php/php-src/trunk/ext/spl/spl_array.c 2009-09-22 07:41:16 UTC (rev 288550)
+++ php/php-src/trunk/ext/spl/spl_array.c 2009-09-22 07:54:06 UTC (rev 288551)
@@ -703,6 +703,7 @@
}
if (intern->debug_info->nApplyCount == 0) {
+ zend_hash_clean(intern->debug_info);
zend_hash_copy(intern->debug_info, intern->std.properties, (copy_ctor_func_t)
zval_add_ref, (void *) &tmp, sizeof(zval *));
storage = intern->array;