1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00

Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE and

E_WARN if no DTD)

# Will MFH to 5.3 after RC
This commit is contained in:
Ilia Alshanetsky
2009-06-10 12:25:41 +00:00
parent b775205cec
commit aafa45d804
+1 -5
View 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;