From: Sterling Hughes Date: Mon, 19 May 2003 16:27:46 +0000 (+0000) Subject: use the appropriate accessor X-Git-Tag: RELEASE_1_0_2~737 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f726a84b1d1eddd36505a7ccc75c255e47a96681;p=php use the appropriate accessor --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index c4dc230ee9..08b88462be 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -164,7 +164,7 @@ change_node_zval(xmlNodePtr node, zval *value) case IS_NULL: convert_to_string(value); case IS_STRING: - node->xmlChildrenNode->content = xmlStrndup(Z_STRVAL_P(value), Z_STRLEN_P(value)); + xmlNodeSetContentLen(node->xmlChildrenNode, Z_STRVAL_P(value), Z_STRLEN_P(value)); break; default: php_error(E_WARNING, "It is not yet possible to assign complex types to attributes");