|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-05 03:55 UTC] coolgk at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 06:00:01 2025 UTC |
Description: ------------ the script displays a fatal error, but the exception should have stopped the script before the error happened, also the line number in error message is wrong. Reproduce code: --------------- --- From manual page: function.set-exception-handler --- function test($e){ echo $e->getMessage(); } set_exception_handler('test'); $x = new c(); function __autoload($className){ echo "Autoload"; throw new Exception(' Failed'); } Expected result: ---------------- Autoload Failed Actual result: -------------- Autoload Fatal error: Class 'c2' not found in /home/coolgk/public_html/misc/Framework/public/test3.php on line 16