#40456 [Com]: php5.2.1 - Uncaught exception try/catch
| From: | judas dot iscariote at gmail dot com | Date: | Tue, 13 Feb 2007 06:28:11 +0000 |
| Subject: | #40456 [Com]: php5.2.1 - Uncaught exception try/catch | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108778@lists.php.net to get a copy of this message | ||
ID: 40456
Comment by: judas dot iscariote at gmail dot com
Reported By: zeldign at zeldign dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: CentOS 4.4
PHP Version: 5.2.1
New Comment:
works perfectly fine here, do you have any zend_extension loaded ? APC,
eaccelerator, Zend optimizer..or whatever?
Previous Comments:
------------------------------------------------------------------------
[2007-02-13 03:26:31] zeldign at zeldign dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40456&edit=1