#41744 [Opn->Fbk]: about try...catch...
| From: | sniper@php.net | Date: | Wed, 20 Jun 2007 14:52:28 +0000 |
| Subject: | #41744 [Opn->Fbk]: about try...catch... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113966@lists.php.net to get a copy of this message | ||
ID: 41744
Updated by: sniper@php.net
Reported By: edwardhey at 163 dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: freebsd
PHP Version: 5.2.1
Previous Comments:
------------------------------------------------------------------------
[2007-06-20 10:03:40] sniper@php.net
And why do you report bugs in old releases? The latest is 5.2.3..you
have 5.2.1!
------------------------------------------------------------------------
[2007-06-20 10:02:40] sniper@php.net
First you need to disable all 3rd party extensions, like any Zend
extensions.
------------------------------------------------------------------------
[2007-06-20 07:20:47] edwardhey at 163 dot com
yes,i have
about this:
Zend Extension 220060519
My phpinfo information:
http://www.phpoo.cn/tan/iProber.php?act=phpinfo
thanks a lot!
------------------------------------------------------------------------
[2007-06-20 07:01:21] derick@php.net
Do you have any extensions loaded, particularly "Zend" extensions?
------------------------------------------------------------------------
[2007-06-20 00:42:30] edwardhey at 163 dot com
Description:
------------
hi~!
when i use 'try' to catch the 'exception',the server throw me the
Fatal error.
php: php5.2.1/fastcgi
server: apache2.2.3
Reproduce code:
---------------
<?php
try {
$error = 'Always throw this error';
throw new Exception($error);
echo 'Never executed';
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
echo 'Hello World';
?>
Expected result:
----------------
Fatal error: Uncaught exception 'Exception' with message 'Always throw
this error' in /www/phpoo.cn/htdocs/test.php:4 Stack trace: #0 {main}
thrown in /www/phpoo.cn/htdocs/test.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41744&edit=1