|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-06-18 13:52 UTC] maikuolan at gmail dot com
[2016-06-18 13:54 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2016-06-18 13:54 UTC] nikic@php.net
[2016-06-18 14:05 UTC] maikuolan at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
Description: ------------ "while" not considered a part of the loop context when breaking from an included file. Test script: --------------- <?php /** a.php */ $a = false; while (true) { // Infinite loop if ($a) { break; } include_once 'b.php'; } echo 'This message will never be echoed due to this possible bug.'; <?php /** b.php */ $a = true; continue; Expected result: ---------------- Expected: "This message will never be echoed due to this possible bug.". Actual result: -------------- Actual: "PHP Fatal error: 'continue' not in the 'loop' or 'switch' context in \b.php on line 5".