#25756 [Opn->Csd]: SimpleXML's validate_schema_file() broken
| From: | moriyoshi@php.net | Date: | Mon, 06 Oct 2003 01:00:03 +0000 |
| Subject: | #25756 [Opn->Csd]: SimpleXML's validate_schema_file() broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48577@lists.php.net to get a copy of this message | ||
ID: 25756
Updated by: moriyoshi@php.net
Reported By: adam at trachtenberg dot com
-Status: Open
+Status: Closed
Bug Type: XML related
Operating System: Mac OS X
PHP Version: 5CVS-2003-10-05 (dev)
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-10-05 14:18:09] adam at trachtenberg dot com
Description:
------------
SimpleXML's validate_schema_file() method is completely
broken.
Reproduce code:
---------------
$s = simplexml_load_file('library.xml');
if ($s->validate_schema_file('library.xsd')) {
print "valid\n";
} else {
print "invalid\n";
}
Expected result:
----------------
Should return true when it validates and false when it
doesn't.
Actual result:
--------------
Always return false.
This patch fixes many problems:
http://www.trachtenberg.com/patches/
simplexml_schema_patch.txt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25756&edit=1