#44531 [NEW]: forgot "}"

From: Date: Tue, 25 Mar 2008 14:48:51 +0000
Subject: #44531 [NEW]: forgot "}"
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-632@lists.php.net to get a copy of this message
From: php at manitu-wolf dot de Operating system: PHP version: Irrelevant PHP Bug Type: Translation problem Bug description: forgot "}" 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 bug report at http://bugs.php.net/?id=44531&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44531&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44531&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44531&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44531&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44531&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44531&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44531&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44531&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44531&r=support Expected behavior: http://bugs.php.net/fix.php?id=44531&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44531&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44531&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44531&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44531&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44531&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44531&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44531&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44531&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44531&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44531&r=mysqlcfg

« previous php.doc.bugs (#632) next »