1
0
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:
Ilia Alshanetsky
2009-06-14 13:13:35 +00:00
parent a6735b8b24
commit 1c8d05069e
+1 -5
View File
@@ -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;