From: james at dunmore dot me dot uk Operating system: Linux PHP version: 5.2.6 PHP Bug Type: *XML functions Bug description: libxml_use_internal_errors disables/resets previous call to set_error_handler
Description: ------------ We use a custom error handler using set_error_handler() I found that after I call libxml_use_internal_errors(false); It resets my error_handler - not sure if this is intended? Reproduce code: --------------- //my set_error_handler suppresses E_NOTICE and E_WARNING //put an E_WARNING here, and it WILL be suppressed libxml_use_internal_errors(false); //put an E_WARNING here, and it won't be suppressed Expected result: ---------------- Errors Suppressed Actual result: -------------- Errors not Suppresses -- Edit bug report at http://bugs.php.net/?id=45880&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45880&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45880&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45880&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45880&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45880&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45880&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45880&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45880&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45880&r=support Expected behavior: http://bugs.php.net/fix.php?id=45880&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45880&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45880&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45880&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45880&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45880&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45880&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45880&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45880&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45880&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45880&r=mysqlcfg