php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61797
Patch dom_node_append_child.patch revision 2013-12-02 19:55 UTC by krakjoe@php.net
revision 2013-12-02 19:43 UTC by krakjoe@php.net

Patch dom_node_append_child.patch for DOM XML related Bug #61797

Patch version 2013-12-02 19:43 UTC

Return to Bug #61797 | Download this patch
Patch Revisions:

Developer: krakjoe@php.net

diff --git a/ext/dom/node.c b/ext/dom/node.c
index 3279567..a6b26c7 100644
--- a/ext/dom/node.c
+++ b/ext/dom/node.c
@@ -1386,9 +1386,11 @@ PHP_FUNCTION(dom_node_append_child)
 			RETURN_FALSE;
 		}
 	}
-
+	
+	zval_copy_ctor(node);
+	
 	dom_reconcile_ns(nodep->doc, new_child);
-
+	
 	DOM_RET_OBJ(new_child, &ret, intern);
 }
 /* }}} end dom_node_append_child */
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 02:05:55 2022 UTC