cvs: php-src(PHP_5_3) /ext/dom document.c
| From: | Ilia Alshanetsky | Date: | Sun, 14 Jun 2009 13:13:35 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/dom document.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58705@lists.php.net to get a copy of this message | ||
iliaa Sun Jun 14 13:13:35 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/dom document.c
Log:
MFB: Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE
and E_WARN if no DTD)
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/document.c?r1=1.68.2.3.2.5.2.16&r2=1.68.2.3.2.5.2.17&diff_format=u
Index: php-src/ext/dom/document.c
diff -u php-src/ext/dom/document.c:1.68.2.3.2.5.2.16 php-src/ext/dom/document.c:1.68.2.3.2.5.2.17
--- php-src/ext/dom/document.c:1.68.2.3.2.5.2.16 Tue Apr 7 15:32:12 2009
+++ php-src/ext/dom/document.c Sun Jun 14 13:13:35 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: document.c,v 1.68.2.3.2.5.2.16 2009/04/07 15:32:12 rrichards Exp $ */
+/* $Id: document.c,v 1.68.2.3.2.5.2.17 2009/06/14 13:13:35 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1936,11 +1936,7 @@
}
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;