#44531 [Opn->Csd]: forgot "}"
| From: | danbrown@php.net | Date: | Tue, 25 Mar 2008 15:58:08 +0000 |
| Subject: | #44531 [Opn->Csd]: forgot "}" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-633@lists.php.net to get a copy of this message | ||
ID: 44531
Updated by: danbrown@php.net
Reported By: php at manitu-wolf dot de
-Status: Open
+Status: Closed
Bug Type: Translation problem
PHP Version: Irrelevant
New Comment:
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.
Thanks for submitting this bug report. The documentation has been
fixed in CVS and will update on the web soon.
~ Dan Brown
Previous Comments:
------------------------------------------------------------------------
[2008-03-25 14:48:51] php at manitu-wolf dot de
Description:
------------
at the german version of "break", you forgot a "}" at the end of first
while
hope this is the right section for it
Reproduce code:
---------------
http://us3.php.net/manual/de/control-structures.break.php
Expected result:
----------------
<?php
$arr = array('eins', 'zwei', 'drei', 'vier',
'stop', 'fünf');
while (list ( , $val) = each ($arr)) {
if ($val == 'stop') {
break; /* Sie könnten hier auch 'break 1;' schreiben. */
}
echo "$val<br />\n";
}
/* Benutzung des optionalen Argumentes. */
$i = 0;
while (++$i) {
switch ($i) {
case 5:
echo "Bei 5<br />\n";
break 1; /* Beendet nur switch. */
case 10:
echo "Bei 10; aussteigen<br />\n";
break 2; /* Beendet switch und while. */
default:
break;
}
}
?>
Actual result:
--------------
<?php
$arr = array('eins', 'zwei', 'drei', 'vier',
'stop', 'fünf');
while (list ( , $val) = each ($arr)) {
if ($val == 'stop') {
break; /* Sie könnten hier auch 'break 1;' schreiben. */
}
echo "$val<br />\n";
/* Benutzung des optionalen Argumentes. */
$i = 0;
while (++$i) {
switch ($i) {
case 5:
echo "Bei 5<br />\n";
break 1; /* Beendet nur switch. */
case 10:
echo "Bei 10; aussteigen<br />\n";
break 2; /* Beendet switch und while. */
default:
break;
}
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44531&edit=1