|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-15 00:31 UTC] tony2001@php.net
[2005-01-22 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 21:00:01 2025 UTC |
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: --------------