Bug #15037: something wrong with the operator '--'
| From: | killyoubye at 263 dot net | Date: | Tue, 15 Jan 2002 04:44:34 +0000 |
| Subject: | Bug #15037: something wrong with the operator '--' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77090@lists.php.net to get a copy of this message | ||
From: killyoubye@263.net
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