From: Marcus Boerger Date: Sun, 26 Oct 2003 13:27:03 +0000 (+0000) Subject: Fix memory corruption X-Git-Tag: RELEASE_2_0_0RC1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14911a136fb6f468c29b5c38c8b53fa050846f19;p=php Fix memory corruption --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 1fd7d1eb3f..dc327f83c8 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -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;