|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch bug63682.patch for SimpleXML related Bug #63682Patch version 2012-12-04 06:09 UTC Return to Bug #63682 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2012-12-04 06:09 UTC | 2012-12-04 05:41 UTCDeveloper: laruence@php.netdiff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 5514f0f..6579655 100644 index 5514f0f..b510786 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1081,15 +1081,9 @@ static HashTable * sxe_get_prop_hash(zval *object, int is_debug TSRMLS_DC) /* {{ zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); - } ALLOC_HASHTABLE(rv); zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); sxe->properties = rv; @@ -1201,6 +1195,20 @@ next_iter: @@ -1201,6 +1195,16 @@ next_iter: } /* }}} */ +static HashTable * sxe_get_gc(zval *object, zval ***table, int *n TSRMLS_DC) /* {{{ */ { Line 27 (now 27), was 20 lines, now 16 lines + sxe = php_sxe_fetch_object(object TSRMLS_CC); + + *table = NULL; + *n = 0; + if (sxe->properties) { + return sxe->properties; + } else { + return NULL; + } + return sxe->properties; +} +/* }}} */ + static HashTable * sxe_get_properties(zval *object TSRMLS_DC) /* {{{ */ { return sxe_get_prop_hash(object, 0 TSRMLS_CC); @@ -1966,7 +1974,9 @@ static zend_object_handlers sxe_object_handlers = { /* {{{ */ @@ -1966,7 +1970,9 @@ static zend_object_handlers sxe_object_handlers = { /* {{{ */ sxe_objects_compare, sxe_object_cast, sxe_count_elements, - sxe_get_debug_info |
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |