summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-05-19 16:27:46 +0000
committerSterling Hughes <sterling@php.net>2003-05-19 16:27:46 +0000
commitf726a84b1d1eddd36505a7ccc75c255e47a96681 (patch)
treeeacdc1a4e7800a7a92a5b5fc3a071d93a5dcd7e1
parent92f0da58e6b41328417096fead7a4fa1bcb7ae09 (diff)
downloadphp-git-f726a84b1d1eddd36505a7ccc75c255e47a96681.tar.gz
use the appropriate accessor
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
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");