From: r dot korving at xit dot nl Operating system: Debian GNU/Linux (Sarge) 2.4.26 PHP version: 5.0.4 PHP Bug Type: DOM XML related Bug description: warning with urlencoded() information, that should be unformatted
Description: ------------ DOMDocument::schemaValidate throws three(!) warnings when the XSD-file does not exist. I think one warning would do. The low-level I/O warning it shows should be supressed (e.g. file_get_contents() doesn't show this warning either). If the low-level I/O warning should remain, it could be fixed, because right now it urlencodes the information it spits out, while it shouldn't. Reproduce code: --------------- <? $doc = new DOMDocument(); $doc->schemaValidate("/non existant file.xsd"); ?> Expected result: ---------------- Warning: xmlSchemaParse: could not load '/non existant file.xsd'. in /www/admin/dev/bugreports/dom-validate/index.php on line 4 Actual result: -------------- Warning: I/O warning : failed to load external entity "/non%20existant%20file.xsd" in /www/admin/dev/bugreports/dom-validate/index.php on line 4 Warning: xmlSchemaParse: could not load '/non existant file.xsd'. in /www/admin/dev/bugreports/dom-validate/index.php on line 4 Warning: Invalid Schema in /www/admin/dev/bugreports/dom-validate/index.php on line 4 -- Edit bug report at http://bugs.php.net/?id=33951&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33951&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33951&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33951&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33951&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33951&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33951&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33951&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33951&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33951&r=support Expected behavior: http://bugs.php.net/fix.php?id=33951&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33951&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33951&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33951&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33951&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33951&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33951&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33951&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33951&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33951&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33951&r=mysqlcfg