|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27666 Exception behavior seems to be broken
Submitted: 2004-03-23 23:46 UTC Modified: 2005-01-22 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: andrey at itime dot ru Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2004-04-07 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-03-23 23:46 UTC] andrey at itime dot ru
Two files.
print 'x';
print 'y';

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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-15 00:31 UTC]
Please try using this CVS snapshot:
For Windows:

Seems to be fixed long time ago.
 [2005-01-22 01:00 UTC] php-bugs at lists dot php dot net
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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 23:01:27 2024 UTC