#36773 [Fbk->Csd]: error_handler with thrown exception

From: Date: Fri, 17 Mar 2006 19:44:24 +0000
Subject: #36773 [Fbk->Csd]: error_handler with thrown exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94477@lists.php.net to get a copy of this message
ID: 36773 User updated by: nikolai dot zujev at gmail dot com Reported By: nikolai dot zujev at gmail dot com -Status: Feedback +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.1.2 New Comment: Thanx, great! Previous Comments: ------------------------------------------------------------------------ [2006-03-17 17:16:08] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip I don't see any coredumps or any other problems. ------------------------------------------------------------------------ [2006-03-17 16:08:56] nikolai dot zujev at gmail dot com Description: ------------ Could not catch exception throw from error_handler function. I couldn't do it only in this situation, other works well. order of errors: NOTICE: Undefined variable ... FATAL: Class name must be a ... Reproduce code: --------------- <?php error_reporting( E_ALL ); set_error_handler( 'error_handler' ); function error_handler( $errno, $errstr, $errfile, $errline ) { echo "($errno) $errstr\n"; throw new Exception( $errstr, $errno ); } class someClass { /*....*/ } unset( $test ); $o = new $test; ?> Expected result: ---------------- Uncaughted exception message ... with trace. Actual result: -------------- non-readable core dump or smth like this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36773&edit=1

« previous php.bugs (#94477) next »