#33119 [NEW]: do-continue does not perform as documented
| From: | bugzilla at yakasha dot net | Date: | Tue, 24 May 2005 08:01:37 +0000 |
| Subject: | #33119 [NEW]: do-continue does not perform as documented | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969368326@lists.php.net to get a copy of this message | ||
From: bugzilla at yakasha dot net
Operating system: OSx.3.8
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: do-continue does not perform as documented
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 bug report at http://bugs.php.net/?id=33119&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33119&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33119&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33119&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33119&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33119&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33119&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33119&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33119&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33119&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33119&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33119&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33119&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33119&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33119&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33119&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33119&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33119&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33119&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33119&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33119&r=mysqlcfg