From: [EMAIL PROTECTED]
Operating system:
PHP version: 4.0.6
PHP Bug Type: Math related
Bug description: something wrong with the operator '--'
I run below on win2000:
<?
$j = 0;
$num = '2.1';
for ($i=$num;$i>1;$i--)
{
echo "i== $i<br>";
if ($j++ == 10)
break;
}
?>
but I get the output:
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
I think something may be wrong with the operator '--'.Maybe I am right.
Good lunk.
--
Edit bug report at: http://bugs.php.net/?id=15037&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]