diff options
author | Wez Furlong <wez@php.net> | 2003-12-09 20:19:44 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-12-09 20:19:44 +0000 |
commit | a35a82ddcd0b5b56aaee75d549011b13bfba3527 (patch) | |
tree | f4f4b4d74bd5a3d0181ddf2732ec6b34c4b710b6 /ext/dom/node.c | |
parent | 49494dee00570104f34966e375462c08b4489a39 (diff) | |
download | php-git-a35a82ddcd0b5b56aaee75d549011b13bfba3527.tar.gz |
allow assignment to $node->nodeValue to work for more
objects and in situations where the rvalue is not a string.
(Fixes a segfault in that case)
Diffstat (limited to 'ext/dom/node.c')
-rw-r--r-- | ext/dom/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c index 40ba5b3ab4..ee769fed8a 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -202,6 +202,8 @@ int dom_node_node_value_write(dom_object *obj, zval *newval TSRMLS_DC) case XML_COMMENT_NODE: case XML_CDATA_SECTION_NODE: case XML_PI_NODE: + case XML_ELEMENT_NODE: + convert_to_string(newval); xmlNodeSetContentLen(nodep, Z_STRVAL_P(newval), Z_STRLEN_P(newval) + 1); break; default: |