#48849 [Opn->Bgs]: php5_module unable catch exception

From: Date: Wed, 08 Jul 2009 20:37:44 +0000
Subject: #48849 [Opn->Bgs]: php5_module unable catch exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139493@lists.php.net to get a copy of this message
ID: 48849 Updated by: jani@php.net Reported By: caotao1570 at gmail dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: linux -PHP Version: 5.2CVS-2009-07-08 (snap) +PHP Version: 5.2.6 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2009-07-08 08:15:30] caotao1570 at gmail dot com Description: ------------ php5_module unable catch exception ½á¹û´íÎó php 5.2.6 ÔÚÃüÁîÐÐÏÂÔËÐÐûÓÐÎÊÌ⣬µ«ÊÇÔÚapache2ϾÍÓÐÎÊÌâÁË Reproduce code: --------------- try { throw new Exception("ex"); for($i=0;$i<1;$i++) { } }catch(Exception $e) { echo "Exception\n"; return ; } echo "end\n"; Expected result: ---------------- not echo "Exception" if: -------------- try { throw new Exception("ex"); }catch(Exception $e) { echo "Exception\n"; return ; } echo "end\n"; ---------------- cho "Exception" Actual result: -------------- echo "Exception" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48849&edit=1

« previous php.bugs (#139493) next »