From:             adam at trachtenberg dot com
Operating system: Mac OS X
PHP version:      5CVS-2003-10-05 (dev)
PHP Bug Type:     XML related
Bug description:  SimpleXML's validate_schema_file() broken

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 bug report at http://bugs.php.net/?id=25756&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25756&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25756&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25756&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25756&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25756&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25756&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25756&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25756&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25756&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25756&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25756&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25756&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25756&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25756&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25756&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25756&r=float

Reply via email to