]> granicus.if.org Git - php/commitdiff
Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE and
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Jun 2009 12:25:41 +0000 (12:25 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Jun 2009 12:25:41 +0000 (12:25 +0000)
E_WARN if no DTD)

# Will MFH to 5.3 after RC

ext/dom/document.c

index 7390ba57b8f53c4c9a16c35dc427c35e063c10a5..f7cc69e03862414492953ac627db6e085615653a 100644 (file)
@@ -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;