From: [EMAIL PROTECTED] Operating system: Any PHP version: 5CVS-2007-06-18 (CVS) PHP Bug Type: XML related Bug description: libxml_get_last_error() - errors survice request scope
Description: ------------ If one fails to call libxml_clear_error() at the end of a request (via register_shutdown_func() e.g.) errors retrieved by libxml_get_last_error() may come from a different request previously handled in the same webserver child. Reproduce code: --------------- -- test.php -- <?php var_dump(libxml_get_last_error()); ?> -- produce.php -- <?php $d= new DomDocument(); $d->loadXML('malformed'); ?> 1) Call produce.php 2) Call test.php - if it is served up by the same web server child, you will see the error from produce.php Expected result: ---------------- One script should never be able to mess with other scripts' context. Actual result: -------------- libxml_get_last_error() in test.php will report the error produced in produce.php if run inside the same web server child process. -- Edit bug report at http://bugs.php.net/?id=41724&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41724&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41724&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41724&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41724&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41724&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41724&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41724&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41724&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41724&r=support Expected behavior: http://bugs.php.net/fix.php?id=41724&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41724&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41724&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41724&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41724&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41724&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41724&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41724&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41724&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41724&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41724&r=mysqlcfg