#33612 [Opn->Bgs]: Uncaught exceptions do not always give an error
| From: | tony2001@php.net | Date: | Thu, 07 Jul 2005 22:16:31 +0000 |
| Subject: | #33612 [Opn->Bgs]: Uncaught exceptions do not always give an error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81559@lists.php.net to get a copy of this message | ||
ID: 33612
Updated by: tony2001@php.net
Reported By: james at academicsuperstore dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Debian -stable
PHP Version: 5.0.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2005-07-08 00:01:04] james at academicsuperstore dot com
Description:
------------
In the event at run time an uncaught exception is found then there is a
fatal error. However, in the event that there are uncaught exceptions
that are not executed such as in the reproduce code there is not even a
notice.
Reproduce code:
---------------
<?
error_reporting(2047 | E_STRICT);
if (0)
throw new Exception("foo");
?>
Expected result:
----------------
Fatal error: Uncaught exception 'Exception' with message 'foo' in
/home/james/html/live_web/test.php:5 Stack trace: #0
Actual result:
--------------
No messages at all.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33612&edit=1