diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-01-29 09:59:53 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-01-29 09:59:53 +0000 |
commit | a2b707fcd7cb207c49243a791c254dcdd2465b49 (patch) | |
tree | a8b7d8dabe8722a4bf33930244e9a31c9b8ce677 /ext/simplexml | |
parent | 182519877b752f144e48904263c449fd5c50364c (diff) | |
download | php-git-a2b707fcd7cb207c49243a791c254dcdd2465b49.tar.gz |
Fixed bug #43918 (Segmentation fault in garbage collector)
Diffstat (limited to 'ext/simplexml')
-rw-r--r-- | ext/simplexml/simplexml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 19ab0ea5e5..442a1359ef 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1077,6 +1077,9 @@ static HashTable * sxe_get_prop_hash(zval *object, int is_debug TSRMLS_DC) /* {{ ALLOC_HASHTABLE(rv); zend_u_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0, UG(unicode)); } else if (sxe->properties) { + if (GC_G(gc_active)) { + return sxe->properties; + } zend_hash_clean(sxe->properties); rv = sxe->properties; } else { |