|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-13 06:28 UTC] judas dot iscariote at gmail dot com
[2007-02-13 08:22 UTC] zeldign at zeldign dot com
[2007-02-13 08:33 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
Description: ------------ php5.2.0 -> caught exception php5.2.1 -> Uncaught exception Reproduce code: --------------- <? class a extends exception { function __construct() { } } try{ throw new a; } catch (Exception $e) { // Will be caught echo "Caught Default Exception\n", $e; } ?> Expected result: ---------------- Caught Default Exception exception 'a' in /home/company/solution/public_html/info.php:11 Stack trace: #0 {main} Actual result: -------------- Fatal error: Uncaught exception 'a' in /home/company/igearmall/public_html/info.php:11 Stack trace: #0 {main} thrown in /home/company/igearmall/public_html/info.php on line 11