#33612 [NEW]: Uncaught exceptions do not always give an error

From: Date: Thu, 07 Jul 2005 22:01:04 +0000
Subject: #33612 [NEW]: Uncaught exceptions do not always give an error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81558@lists.php.net to get a copy of this message
From: james at academicsuperstore dot com Operating system: Debian -stable PHP version: 5.0.4 PHP Bug Type: Unknown/Other Function Bug description: Uncaught exceptions do not always give an error 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 bug report at http://bugs.php.net/?id=33612&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33612&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33612&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33612&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33612&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33612&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33612&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33612&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33612&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33612&r=support Expected behavior: http://bugs.php.net/fix.php?id=33612&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33612&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33612&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33612&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33612&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33612&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33612&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33612&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33612&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33612&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33612&r=mysqlcfg

« previous php.bugs (#81558) next »