ID: 27666
Updated by: [EMAIL PROTECTED]
Reported By: andrey at itime dot ru
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
-Operating System: Win2K
+Operating System: *
-PHP Version: 5.0.0RC1
+PHP Version: 5CVS-2004-04-07
Previous Comments:
------------------------------------------------------------------------
[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