From: Marcus Boerger Date: Fri, 14 Apr 2006 12:18:15 +0000 (+0000) Subject: - If node no longer exists then there won't be any data X-Git-Tag: RELEASE_1_3~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e44e0b1476e1f81c12492c8193bbee1cc348e61;p=php - If node no longer exists then there won't be any data --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 2735dfcfdc..133b61e991 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -950,6 +950,9 @@ static HashTable * sxe_properties_get(zval *object TSRMLS_DC) } GET_NODE(sxe, node); + if (!node) { + return rv; + } if (1||sxe->iter.type != SXE_ITER_CHILD) { if (sxe->iter.type == SXE_ITER_ELEMENT) { node = php_sxe_get_first_node(sxe, node TSRMLS_CC);