diff options
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 72098ddf73..529c1345d7 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -4416,8 +4416,8 @@ PHP_FUNCTION(domxml_doc_free_doc) DOMXML_GET_THIS_OBJ(docp, doc, le_domxmldocp); - if (docp->type != XML_DOCUMENT_NODE) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "DOM Document is required"); + if (! (docp->type == XML_DOCUMENT_NODE || docp->type == XML_HTML_DOCUMENT_NODE) ) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "DomDocument is required"); RETURN_FALSE; } |