cvs: phpdoc /en/language control-structures.xml
| From: | Jakub Vrana | Date: | Wed, 21 Nov 2007 16:58:21 +0000 |
| Subject: | cvs: phpdoc /en/language control-structures.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-422@lists.php.net to get a copy of this message | ||
vrana Wed Nov 21 16:58:21 2007 UTC
Modified files:
/phpdoc/en/language control-structures.xml
Log:
Invalid description of comma in for (bug #42644)
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/control-structures.xml?r1=1.155&r2=1.156&diff_format=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.155
phpdoc/en/language/control-structures.xml:1.156
--- phpdoc/en/language/control-structures.xml:1.155 Tue Nov 20 23:05:13 2007
+++ phpdoc/en/language/control-structures.xml Wed Nov 21 16:58:20 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.155 $ -->
+<!-- $Revision: 1.156 $ -->
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Control Structures</title>
@@ -415,10 +415,8 @@
</simpara>
<simpara>
Each of the expressions can be empty or contain multiple
- expressions separated by commas. Comma separated expressions in expr2
- are treated similarly to being separated by the <link
- linkend="language.operators.logical">|| operator</link> but has a
- lower precedence than ||.
+ expressions separated by commas. In <varname>expr2</varname>, all
+ expressions are evaluated but the result is taken from the last part.
<varname>expr2</varname> being empty means the loop should
be run indefinitely (PHP implicitly considers it as
&true;, like C). This may not be as useless as