This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/runtime/ext/domdocument/ext_domdocument.cpp b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
index 6a35725..3270d8a 100644 | |
--- a/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
+++ b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
@@ -2470,7 +2470,12 @@ Variant HHVM_METHOD(DOMNode, replaceChild, | |
xmlReplaceNode(oldchild, newchild); | |
dom_reconcile_ns(nodep->doc, newchild); | |
} | |
- return create_node_object(oldchild, data->doc(), false); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/runtime/ext/domdocument/ext_domdocument.cpp b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
index 6a35725..03e685f 100644 | |
--- a/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
+++ b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
@@ -2470,7 +2470,12 @@ Variant HHVM_METHOD(DOMNode, replaceChild, | |
xmlReplaceNode(oldchild, newchild); | |
dom_reconcile_ns(nodep->doc, newchild); | |
} | |
- return create_node_object(oldchild, data->doc(), false); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/runtime/ext/domdocument/ext_domdocument.cpp b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
index fec95c5..6a35725 100644 | |
--- a/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
+++ b/hphp/runtime/ext/domdocument/ext_domdocument.cpp | |
@@ -1110,14 +1110,32 @@ static xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName) { | |
return ret; | |
} | |
-static void appendOrphan(XmlNodeSet &orphans, xmlNodePtr node) { | |
+/* |