From: Ilia Alshanetsky Date: Wed, 10 Jun 2009 12:25:41 +0000 (+0000) Subject: Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE and X-Git-Tag: php-5.4.0alpha1~191^2~3368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aafa45d80483018a43fc28dfdf4961a215dcaa11;p=php Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE and E_WARN if no DTD) # Will MFH to 5.3 after RC --- diff --git a/ext/dom/document.c b/ext/dom/document.c index 7390ba57b8..f7cc69e038 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -1966,11 +1966,7 @@ PHP_FUNCTION(dom_document_validate) } DOM_GET_OBJ(docp, id, xmlDocPtr, intern); - - if (docp->intSubset == NULL) { - php_error_docref(NULL TSRMLS_CC, E_NOTICE, "No DTD given in XML-Document"); - } - + cvp = xmlNewValidCtxt(); cvp->userData = NULL;