]> granicus.if.org Git - php/commitdiff
- Small optimization of the fix of bug #53071. It's not necessary to destroy
authorGustavo André dos Santos Lopes <cataphract@php.net>
Mon, 25 Oct 2010 02:03:20 +0000 (02:03 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Mon, 25 Oct 2010 02:03:20 +0000 (02:03 +0000)
  the debug info as it's not holding references anymore (the fix removed
  the refcount increments).

ext/spl/spl_observer.c

index 9164ec49866a5ec4685128cb8f8592e1bee58cb9..4c6ec42eaf365e1671baf7c560bef4361f3fd094 100755 (executable)
@@ -320,13 +320,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);