Skip to content

Instantly share code, notes, and snippets.

View swtaarrs's full-sized avatar

Brett Simmers swtaarrs

  • Mountain View, CA
  • 23:07 (UTC -07:00)
View GitHub Profile
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);
+
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);
+
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) {
+/*