diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-25 02:03:20 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-25 02:03:20 +0000 |
commit | 384cd8cda5f401fe3d5fbd9591cf6e1e1614c260 (patch) | |
tree | 48c5a2ffc2db36b70f7213dad225c78854ca2091 | |
parent | 5721132c2955e771e406d8ab061ed5238a31fcf1 (diff) | |
download | php-git-384cd8cda5f401fe3d5fbd9591cf6e1e1614c260.tar.gz |
- 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).
-rwxr-xr-x | ext/spl/spl_observer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c index 9164ec4986..4c6ec42eaf 100755 --- a/ext/spl/spl_observer.c +++ b/ext/spl/spl_observer.c @@ -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); |