php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77053 Invalid "continue" handling change in PHP 7 is undocumented
Submitted: 2018-10-24 14:50 UTC Modified: 2018-11-05 16:20 UTC
From: samuel at ritterwagner dot de Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.0.32 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: samuel at ritterwagner dot de
New email:
PHP Version: OS:

 

 [2018-10-24 14:50 UTC] 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;
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-24 15:00 UTC] daverandom@php.net
-Summary: undocumented change +Summary: Invalid "continue" handling change in PHP 7 is undocumented
 [2018-10-24 15:00 UTC] daverandom@php.net
-Status: Open +Status: Verified
 [2018-11-05 16:20 UTC] 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-11-05 16:20 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-11-05 16:20 UTC] cmb@php.net
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.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=ac33a4e7912f908119fa171248c917b25651c778
Log: Fix #77053: Invalid "continue" handling change in PHP 7 is undocumented
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC