#27666 [Fbk->NoF]: Exception behavior seems to be broken
| From: | php-bugs at lists dot php dot net | Date: | Sat, 22 Jan 2005 00:00:07 +0000 |
| Subject: | #27666 [Fbk->NoF]: Exception behavior seems to be broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72632@lists.php.net to get a copy of this message | ||
ID: 27666
Updated by: php-bugs@lists.php.net
Reported By: andrey at itime dot ru
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5CVS-2004-04-07
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-01-15 00:31:32] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Seems to be fixed long time ago.
------------------------------------------------------------------------
[2004-03-23 23:46:31] andrey at itime dot ru
Description:
------------
Two files.
1.php5:
<?
print 'x';
require_once('2.php5');
print 'y';
die('z');
?>
2.php5:
<?
print '1';
throw new Exception('Help me!');
print '2';
?>
After run 1.php5, I expect to see: "x1" printed and uncaughted
exception report. But I see "x1yz" printed and no exception report.
It seems that php just continue execution after returning from
require_once(). Even if I surround require_once() by try {} catch
block, it still print "x1yz" and die.
Reproduce code:
---------------
Expected result:
----------------
Actual result:
--------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27666&edit=1