diff options
author | Christian Stocker <chregu@php.net> | 2003-04-08 17:22:19 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2003-04-08 17:22:19 +0000 |
commit | b99146a5c732c586a24e51afa846e9be82a17ee9 (patch) | |
tree | 48c21ad06724072d7797a8cff1fbb1054c6ef970 /ext/domxml/php_domxml.c | |
parent | b18542ba68e7bc17907654d9a962225efa3e6011 (diff) | |
download | php-git-b99146a5c732c586a24e51afa846e9be82a17ee9.tar.gz |
make it possible to free DomHtmlDocuments as well
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; } |