]> granicus.if.org Git - php/commitdiff
- If node no longer exists then there won't be any data
authorMarcus Boerger <helly@php.net>
Fri, 14 Apr 2006 12:18:15 +0000 (12:18 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 14 Apr 2006 12:18:15 +0000 (12:18 +0000)
ext/simplexml/simplexml.c

index 2735dfcfdcfc4bbedddf53653cc46fbd0a42392a..133b61e991a5465a04f0276438f92dfd8cfdfd61 100644 (file)
@@ -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);