diff --git a/ext/dom/document.c b/ext/dom/document.c index 1b0bfda7f6e..588aabda397 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -816,7 +816,7 @@ PHP_METHOD(DOMDocument, importNode) /* If there is no root, the namespace cannot be attached to it, so we have to attach it to the old list. */ if (nsptr != NULL && root == NULL) { - dom_set_old_ns(nodep->doc, nsptr); + php_libxml_set_old_ns(nodep->doc, nsptr); } } retnodep->ns = nsptr;