]> granicus.if.org Git - php/commitdiff
Fix memory corruption
authorMarcus Boerger <helly@php.net>
Sun, 26 Oct 2003 13:27:03 +0000 (13:27 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 26 Oct 2003 13:27:03 +0000 (13:27 +0000)
ext/simplexml/simplexml.c

index 1fd7d1eb3f750d99de2ba20a61540d7ec33683b6..dc327f83c8525fad4e8fc0ead56c76c4be7b4782 100644 (file)
@@ -135,7 +135,7 @@ sxe_property_read(zval *object, zval *member, zend_bool silent TSRMLS_DC)
                        
                        MAKE_STD_ZVAL(value);
                        contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, attr->children, 1);
-                       ZVAL_STRING(value, contents, 0);
+                       ZVAL_STRING(value, contents, 1);
                        APPEND_CUR_ELEMENT(counter, value);
                }
                attr = attr->next;