ID:               41744
 Updated by:       [EMAIL PROTECTED]
 Reported By:      edwardhey at 163 dot com
 Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: freebsd
-PHP Version:      5.2.3
+PHP Version:      5.2.1
 New Comment:

And why do you report bugs in old releases? The latest is 5.2.3..you
have 5.2.1!


Previous Comments:
------------------------------------------------------------------------

[2007-06-20 10:02:40] [EMAIL PROTECTED]

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] [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

Reply via email to