]> granicus.if.org Git - php/commitdiff
- MFB
authorMarcus Boerger <helly@php.net>
Mon, 27 Feb 2006 11:55:23 +0000 (11:55 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 27 Feb 2006 11:55:23 +0000 (11:55 +0000)
ext/simplexml/simplexml.c

index 4992ebdba5eb663c0a531e32e74a5fc0835a2b73..25dd25bd3b67a5255425c3fa46ce70796f00bb1c 100644 (file)
@@ -331,6 +331,10 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
        if (member == &tmp_zv) {
                zval_dtor(&tmp_zv);
        }
+       if (Z_TYPE_P(return_value) == IS_NULL) {
+               FREE_ZVAL(return_value);
+               return_value = &EG(uninitialized_zval);
+       }
 
        return return_value;
 }