ID: 31206 Updated by: [EMAIL PROTECTED] Reported By: mlovett at morpace dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Fedora Core 2 PHP Version: 5.0.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip What does this code output for you? <?php trigger_error("my message",E_USER_ERROR); ?> Previous Comments: ------------------------------------------------------------------------ [2004-12-20 17:46:07] mlovett at morpace dot com Description: ------------ trigger_error("my message",E_USER_ERROR) reports "my message" as a PHP Notice, not an error, when used inside an exception handler. Reproduce code: --------------- ini_set("error_log","/var/www/html/indigo/weblog"); ini_set("log_errors","1"); ini_set("display_errors","0"); function handleException($e) { trigger_error("EXCEPTION THROWN: " . $e->getMessage(),E_USER_ERROR); // want exception messages to go to same spot as errors Header("Location: bailout.php"); exit; } set_exception_handler("handleException"); Expected result: ---------------- I expected the the error message to be of type E_USER_ERROR, not E_USER_NOTICE. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31206&edit=1