PHP 4.0 Bug #3073: do .. while with continue no longer works
| From: | danny dot heijl at cevi dot be | Date: | Thu, 30 Dec 1999 13:25:44 +0000 |
| Subject: | PHP 4.0 Bug #3073: do .. while with continue no longer works | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14158@lists.php.net to get a copy of this message | ||
From: danny.heijl@cevi.be
Operating system: RH Linux 5.2 or 6.0
PHP version: 4.0 Latest CVS (30/12/1999)
PHP Bug Type: Scripting Engine problem
Bug description: do .. while with continue no longer works
The following works with PHP3 and used to work with PHP4.
You now get an endless loop :
<?php
$i = 10;
do {
if ($i > 0) {
echo $i . " is > 0 \n";
continue;
} else {
echo $i . " is <= 0\n";
}
} while (--$i > 0);
?>