|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-11-16 14:38 UTC] kevin at dope dot de
When I use this script with my employer's computer (Linux 2.0.36, Apache 1.3.9, PHP 3.0.12, OCI8 and Oracle):
for ($i=0; $i<10; $i += .5) {
echo $i . "<br>";
}
I get an infinite loop, because $i remains zero. If I increment $i with 1.5 each time, it gets actually incremented with 1, so it seems like the increment is floor()'ed before.
The script runs perfectly on my workstation (Linux 2.2.13, Apache 1.3.4, PHP3.0.7, MySQL).
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
this is locale-dependant, it has been fixed for php4 but not php3 as a workaround use setlocale("C",LC_ALL)