Doc #77053 [Opn->Ver]: Invalid "continue" handling change in PHP 7 is undocumented
| From: | daverandom@php.net | Date: | Wed, 24 Oct 2018 15:00:30 +0000 |
| Subject: | Doc #77053 [Opn->Ver]: Invalid "continue" handling change in PHP 7 is undocumented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16096@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: daverandom@php.net
Reported by: samuel at ritterwagner dot de
Summary: Invalid "continue" handling change in PHP 7 is
undocumented
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
Operating System: any
PHP Version: 7.0.32
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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