|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-10-05 21:00 UTC] moriyoshi@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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