Doc #77053 [Ver->Csd]: Invalid "continue" handling change in PHP 7 is undocumented

From: Date: Mon, 05 Nov 2018 16:20:54 +0000
Subject: Doc #77053 [Ver->Csd]: Invalid "continue" handling change in PHP 7 is undocumented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16123@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77053&edit=1 ID: 77053 Updated by: cmb@php.net Reported by: samuel at ritterwagner dot de Summary: Invalid "continue" handling change in PHP 7 is undocumented -Status: Verified +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: any PHP Version: 7.0.32 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2018-11-05 16:20:14] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=345956 Log: Fix #77053: Invalid "continue" handling change in PHP 7 is undocumented ------------------------------------------------------------------------ [2018-10-24 14:50:36] samuel at ritterwagner dot de Description: ------------ --- From manual page: https://php.net/migration70.incompatible --- The continue statement is only valid inside loops and switches. In PHP 5.6, a continue in an invalid context throws a Fatal Error when it is encountered during the execution. Starting from PHP 7.0, a Fatal Error is thrown at parsing time, which is not documented anywhere. Test script: --------------- if (false) { continue; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77053&edit=1

« previous php.doc.bugs (#16123) next »