mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08: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:
parent
b775205cec
commit
aafa45d804
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user