[PHP-DEV] PHP 4.0 Bug #3073: do .. while with continue no longer works From: danny.heijl <email protected>
Date: 12/30/99

From: danny.heijl <email protected>
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);
?>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>