mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
MFB: Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE
and E_WARN if no DTD)
This commit is contained in:
+1
-5
@@ -1936,11 +1936,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;
|
||||
|
||||
Reference in New Issue
Block a user