From: eugenio dot tacchini at unicatt dot it Operating system: Linux PHP version: 4.4.1 PHP Bug Type: Scripting Engine problem Bug description: Fatal error: User error handler must not modify error context in....
Description: ------------ This bug http://bugs.php.net/bug.php?id=25922 seems to be still reprodusabe in PHP 4.4.1. PHP doesn't crash but produce the message reported below. Reproduce code: --------------- function my_error_handler( $error, $errmsg = '', $errfile = '', $errline = 0, $errcontext = '' ) { $errcontext = ''; } set_error_handler( 'my_error_handler' ); function test( $headers = '' ) { echo "Undefined index here: '{$data['HTTP_HEADER']}'\n"; } test(); Expected result: ---------------- Undefined index here: '' Actual result: -------------- Fatal error: User error handler must not modify error context in.... -- Edit bug report at http://bugs.php.net/?id=35459&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35459&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35459&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35459&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35459&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35459&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35459&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35459&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35459&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35459&r=support Expected behavior: http://bugs.php.net/fix.php?id=35459&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35459&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35459&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35459&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35459&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35459&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35459&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35459&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35459&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35459&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35459&r=mysqlcfg
