Doc #69853 [Csd]: break behavior unspecified when no argument is specified
| From: | salathe@php.net | Date: | Sat, 27 Jun 2015 22:34:48 +0000 |
| Subject: | Doc #69853 [Csd]: break behavior unspecified when no argument is specified | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12482@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69853&edit=1
ID: 69853
Updated by: salathe@php.net
Reported by: chealer at gmail dot com
Summary: break behavior unspecified when no argument is
specified
Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I've gone with "immediate enclosing structure". Hopefully that clears up any
confusion.
Previous Comments:
------------------------------------------------------------------------
[2015-06-27 22:32:50] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=337069
Log: better phrasing (doc bug #69853)
------------------------------------------------------------------------
[2015-06-27 21:57:48] chealer at gmail dot com
Thank you very much to you, salathe.
While the change does fix, I recommend to avoid referring to "the current loop", for 2
reasons:
break does not only break from loops.
When the behavior was unspecified, there are several current "loops", not just one.
I would suggest:
The default value is <literal>1</literal> (only break from the innermost enclosing
structure).
------------------------------------------------------------------------
[2015-06-27 20:26:15] salathe@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.
------------------------------------------------------------------------
[2015-06-27 20:25:06] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=337067
Log: clarify break behavior unspecified when no argument is specified (doc bug #69853)
------------------------------------------------------------------------
[2015-06-27 18:45:06] chealer at gmail dot com
cmb, the sentence you quote is semantically invalid (there may be more than one current affected
structure).
As for the example, it cannot replace specification (as for any example). Besides, the break
statement you mention is in a single affected structure.
Thanks for reopening
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69853
--
Edit this bug report at https://bugs.php.net/bug.php?id=69853&edit=1