]> granicus.if.org Git - php/commitdiff
Fixed ext/spl/tests/arrayObject_magicMethods2.phpt
authorDmitry Stogov <dmitry@php.net>
Tue, 22 Sep 2009 07:54:06 +0000 (07:54 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 22 Sep 2009 07:54:06 +0000 (07:54 +0000)
ext/spl/spl_array.c

index ffbbe1a7b827fbc6806b8e40a4423525b5f8a457..2545a5a2bec1a3e0aa03ddd0487377d3ea6d521d 100755 (executable)
@@ -700,6 +700,7 @@ static HashTable* spl_array_get_debug_info(zval *obj, int *is_temp TSRMLS_DC) /*
                }
 
                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;