#35459 [Bgs]: Fatal error: User error handler must not modify error context in....

From: Date: Mon, 28 Nov 2005 22:56:11 +0000
Subject: #35459 [Bgs]: Fatal error: User error handler must not modify error context in....
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89325@lists.php.net to get a copy of this message
ID: 35459 User updated by: eugenio dot tacchini at unicatt dot it Reported By: eugenio dot tacchini at unicatt dot it Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.4.1 New Comment: Yes, it is, but that piece of code doesn't produce the error in previous versions of PHP, do it? Previous Comments: ------------------------------------------------------------------------ [2005-11-28 23:43:05] tony2001@php.net The error message is pretty clear, isn't it? ------------------------------------------------------------------------ [2005-11-28 23:39:15] eugenio dot tacchini at unicatt dot it 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 this bug report at http://bugs.php.net/?id=35459&edit=1

« previous php.bugs (#89325) next »