ID: 31304
Updated by: [EMAIL PROTECTED]
Reported By: jhargis at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: Output Control
+Bug Type: Zend Engine 2 problem
Operating System: Debian Linux 2.4.27-1-386
PHP Version: 5.0.3
New Comment:
Throwing an exception is fatal error by it's nature.
The error message clearly says what's wrong.
Why do you expect warning or anything else ?
Previous Comments:
------------------------------------------------------------------------
[2004-12-26 17:06:23] jhargis at gmail dot com
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31304&edit=1