Bug #14127 Updated: php4.06 for apache ,windows
| From: | derick@php.net | Date: | Tue, 20 Nov 2001 06:13:43 +0000 |
| Subject: | Bug #14127 Updated: php4.06 for apache ,windows | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71015@lists.php.net to get a copy of this message | ||
ID: 14127
Updated by: derick
Reported By: xiaoyf@21cn.com
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows2000/nt4 server
PHP Version: 4.0.6
New Comment:
THis is not a bug, the strings get converted to a number here. Because the number is too big as
integer value, they are converted into a floating point number. Floatingpoint numbers are never so
accurate, thus the comparison succeeds. Please use the === operator instead of the == operator to
get the desired result.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-11-19 18:52:09] xiaoyf@21cn.com
I have a program ,work with windows2000/nt4 server and apache 1.3.22,php4.0.6
if ("32060199990000780"=="32060199990000782") {
echo "ok<br>";
}
else {
echo "not <br>";
}
it comp is ok.
this is error ! (0==2)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14127&edit=1