|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-10 22:00 UTC] tony2001@php.net
[2005-01-31 22:28 UTC] sniper@php.net
[2011-01-16 22:19 UTC] stas@php.net
-Status: No Feedback
+Status: Duplicate
[2011-01-16 22:19 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ When the destructor issues an exception, it goes unhandled (obviously), however tossing a fatal does not seem like the appropriate course of action. Fatal error: Exception thrown without a stack frame in Unknown on line 0 Reproduce code: --------------- <?php class MyClass { function __destruct(){ throw new Exception('fail'); } } $n = new MyClass(); ?> Expected result: ---------------- A warning? Something other than a non descriptive fatal.