]> granicus.if.org Git - php/commitdiff
use the appropriate accessor
authorSterling Hughes <sterling@php.net>
Mon, 19 May 2003 16:27:46 +0000 (16:27 +0000)
committerSterling Hughes <sterling@php.net>
Mon, 19 May 2003 16:27:46 +0000 (16:27 +0000)
ext/simplexml/simplexml.c

index c4dc230ee9687564f9888ee0d53cf75740356038..08b88462bef3be7d8dd421fd07aee3c4b73d1a88 100644 (file)
@@ -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");