From: Gustavo André dos Santos Lopes Date: Mon, 25 Oct 2010 02:03:20 +0000 (+0000) Subject: - Small optimization of the fix of bug #53071. It's not necessary to destroy X-Git-Tag: php-5.4.0alpha1~191^2~764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21d704063d5107a7e49877e3be333c79681c765f;p=php - Small optimization of the fix of bug #53071. It's not necessary to destroy the debug info as it's not holding references anymore (the fix removed the refcount increments). --- diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c index 2f3a29f441..255d7816d2 100755 --- a/ext/spl/spl_observer.c +++ b/ext/spl/spl_observer.c @@ -389,13 +389,6 @@ static HashTable *spl_object_storage_get_properties(zval *obj TSRMLS_DC) /* {{{ zend_hash_clean(Z_ARRVAL_P(gcdata_arr)); } - /* destroy intern->debug_info, as it's holding references to the zvals */ - if (intern->debug_info != NULL) { - zend_hash_destroy(intern->debug_info); - efree(intern->debug_info); - intern->debug_info = NULL; - } - if (gcdata_arr == NULL) { MAKE_STD_ZVAL(gcdata_arr); array_init(gcdata_arr);