ID:               41814
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thomas dot hebinck at digionline dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.2.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You are comparing two numeric strings.
http://www.php.net/manual/en/language.operators.comparison.php


Previous Comments:
------------------------------------------------------------------------

[2007-06-26 18:46:06] thomas dot hebinck at digionline dot de

Description:
------------
The behaviour of the comparison of strings containing integers changed
from PHP 5.2.0 to 5.2.1.

Reproduce code:
---------------
echo (int)('0x100000000000000000'=='0x100000000000000001');

Expected result:
----------------
0 // this was the result in PHP <= 5.2.0

Actual result:
--------------
1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41814&edit=1

Reply via email to