Re: [PHP-DOC] Patch for #26209
Seems to be fine to me; Goba Mehdi Achour wrote: Hi ! Attached is a patch fixing http://bugs.php.net/26209 The bug could have been marked bogus, but this commit will maybe avoid some headaches.. any objection (or review) for it ? didou Index: control-structures.xml === RCS file: /repository/phpdoc/en/language/control-structures.xml,v retrieving revision 1.81 diff -u -r1.81 control-structures.xml --- control-structures.xml 30 Sep 2003 08:40:06 - 1.81 +++ control-structures.xml 13 Nov 2003 23:31:13 - @@ -750,6 +750,49 @@ + + Ommiting the semicolon after continue can lead to + confusion. Here's an example of what you shouldn't do. + + + + + + + + One can expect the result to be : + + + + + + but this script will output : + + + + + + because the return value of the print + call is int(1), and it will look like the + optional numeric argument mentionned above. + + +
[PHP-DOC] Patch for #26209
Hi ! Attached is a patch fixing http://bugs.php.net/26209 The bug could have been marked bogus, but this commit will maybe avoid some headaches.. any objection (or review) for it ? didou Index: control-structures.xml === RCS file: /repository/phpdoc/en/language/control-structures.xml,v retrieving revision 1.81 diff -u -r1.81 control-structures.xml --- control-structures.xml 30 Sep 2003 08:40:06 - 1.81 +++ control-structures.xml 13 Nov 2003 23:31:13 - @@ -750,6 +750,49 @@ + + Ommiting the semicolon after continue can lead to + confusion. Here's an example of what you shouldn't do. + + + + + + + + One can expect the result to be : + + + + + + but this script will output : + + + + + + because the return value of the print + call is int(1), and it will look like the + optional numeric argument mentionned above. + + +