Date: 06/01/02
- Next message: André Luis Ferreira da Silva Bacci: "[PHP-DOC] cvs: phpdoc-pt_BR /language expressions.xml"
- Previous message: Thomas Schöfbeck: "Re: [PHP-DOC] cvs: phpdoc /en/appendices phpdevel.xml"
- Next in thread: jmcastagnetto <email protected>: "[PHP-DOC] Bug #17556 Updated: Docs lack specific info about switch() and continue;"
- Reply: jmcastagnetto <email protected>: "[PHP-DOC] Bug #17556 Updated: Docs lack specific info about switch() and continue;"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ahristov <email protected>
Operating system: All
PHP version: 4.2.1
PHP Bug Type: Documentation problem
Bug description: Docs lack specific info about switch() and continue;
After 2 years of coding in PHP I found something strange to me but
probably not to the creators of PHP :)). continue; inside a switch
statement is equivalent of break; For this reason I've found 3 closed bugs
- 5805, 8768 & 7591. However there is no info in the docs that switch() is
one time loop - as said in one of the answer of one of the reports. I
think that switch() docs has to mention that switch() is works like one
iteration loop and that continue without any params within a switch is
equivalent of break;. Thus the effect which one may want will be continue
(level+1) (level is the level which will be if the program was written in
C). Finally there should be short note in the continue; docs that inside a
switch() it works somekind different than in C and provided link to
switch() page for more info.
Best regards,
Andrey Hristov
-- Edit bug report at http://bugs.php.net/?id=17556&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17556&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17556&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17556&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17556&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17556&r=support Expected behavior: http://bugs.php.net/fix.php?id=17556&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17556&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17556&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17556&r=globals
- Next message: André Luis Ferreira da Silva Bacci: "[PHP-DOC] cvs: phpdoc-pt_BR /language expressions.xml"
- Previous message: Thomas Schöfbeck: "Re: [PHP-DOC] cvs: phpdoc /en/appendices phpdevel.xml"
- Next in thread: jmcastagnetto <email protected>: "[PHP-DOC] Bug #17556 Updated: Docs lack specific info about switch() and continue;"
- Reply: jmcastagnetto <email protected>: "[PHP-DOC] Bug #17556 Updated: Docs lack specific info about switch() and continue;"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

