#33119 [Opn->Csd]: do-continue does not perform as documented

From: Date: Tue, 24 May 2005 09:56:16 +0000
Subject: #33119 [Opn->Csd]: do-continue does not perform as documented
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368328@lists.php.net to get a copy of this message
ID: 33119 Updated by: vrana@php.net Reported By: bugzilla at yakasha dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: OSx.3.8 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. "continue is used within looping structures to skip the rest of the current loop iteration and continue execution at the condition evaluation and then the beginning of the next iteration." Previous Comments: ------------------------------------------------------------------------ [2005-05-24 10:01:36] bugzilla at yakasha dot net Description: ------------ continue documentation says, "...continue execution at the beginning of the next iteration." To me, the beginning would mean the top, where it began. I noticed that continue takes you to the bottom of a do loop. According to the documentation (as I read it), the attached code should go into an endless loop. However, it exits just fine. I noticed that bug #3073 'fixed' this issue. ie, continue used to go to the top, now goes to the bottom. Reproduce code: --------------- $x = 0; do { if( $x == 0 ) continue; } while( $x != 0 ); Expected result: ---------------- An endless loop that eventually times out Actual result: -------------- Absolutely nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33119&edit=1

« previous php.doc (#969368328) next »