]> 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 25d53ad5906108a5b80b553ee75611eedf731880..94b092f8c4658f37bb0f73b6e06c3679b52a3a6f 100755 (executable)
@@ -703,6 +703,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;