rrichards               Wed Jun 11 16:06:03 2003 EDT

  Modified files:              
    /php4/ext/dom       text.c 
  Log:
  forgot this: set doc for new text node as current may not be in tree
  
Index: php4/ext/dom/text.c
diff -u php4/ext/dom/text.c:1.7 php4/ext/dom/text.c:1.8
--- php4/ext/dom/text.c:1.7     Wed Jun 11 15:55:52 2003
+++ php4/ext/dom/text.c Wed Jun 11 16:06:03 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: text.c,v 1.7 2003/06/11 19:55:52 rrichards Exp $ */
+/* $Id: text.c,v 1.8 2003/06/11 20:06:03 rrichards Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -141,7 +141,7 @@
        xmlFree(cur);
 
        xmlNodeSetContentLen(node, first, offset);
-       nnode = xmlNewText(second);
+       nnode = xmlNewDocText(node->doc, second);
        
        xmlFree(first);
        xmlFree(second);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to