From aafa45d80483018a43fc28dfdf4961a215dcaa11 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 10 Jun 2009 12:25:41 +0000 Subject: [PATCH] Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE and E_WARN if no DTD) # Will MFH to 5.3 after RC --- ext/dom/document.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.50.1