ID: 41744 User updated by: edwardhey at 163 dot com Reported By: edwardhey at 163 dot com -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: freebsd PHP Version: 5.2.3 New Comment:
yes,i have about this: Zend Extension 220060519 My phpinfo information: http://www.phpoo.cn/tan/iProber.php?act=phpinfo thanks a lot! Previous Comments: ------------------------------------------------------------------------ [2007-06-20 07:01:21] [EMAIL PROTECTED] 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
