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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon Apr 29 18:01:30 2024 UTC