|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-09-08 12:58 UTC] girgias@php.net
-Status: Open
+Status: Feedback
[2021-09-08 12:58 UTC] girgias@php.net
[2021-09-08 13:07 UTC] cmb@php.net
[2021-09-08 13:10 UTC] Kai dot Habel at duofaktur dot de
-Status: Feedback
+Status: Open
[2021-09-08 13:10 UTC] Kai dot Habel at duofaktur dot de
[2021-09-08 13:24 UTC] Kai dot Habel at duofaktur dot de
[2021-09-08 13:41 UTC] sjon@php.net
-Status: Open
+Status: Feedback
[2021-09-08 13:41 UTC] sjon@php.net
[2021-09-08 13:53 UTC] Kai dot Habel at duofaktur dot de
-Status: Feedback
+Status: Closed
[2021-09-08 13:53 UTC] Kai dot Habel at duofaktur dot de
[2021-09-08 14:05 UTC] cmb@php.net
-Status: Closed
+Status: Not a bug
[2021-09-08 14:05 UTC] cmb@php.net
[2021-09-10 15:50 UTC] php at example dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 15:00:01 2026 UTC |
Description: ------------ Prior to php 8.0 calls to exit or die worked within loops like foreach or switch. Since 8.0 these statements are totally ignored and this is causing hours and hours of work to use a goto call to end processing in each and every php file. Test script: --------------- $a = 2; switch($a) { case 1: echo "1"; exit; break; case 2: echo "2"; exit; break; case 3: echo "3"; exit; break; } echo "4"; Expected result: ---------------- 1 Actual result: -------------- 14