php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48849 php5_module unable catch exception
Submitted: 2009-07-08 08:15 UTC Modified: 2009-07-08 20:37 UTC
From: caotao1570 at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.6 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: caotao1570 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-08 08:15 UTC] 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"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-08 20:37 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC