php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47705 Linux host.localhost 2.6.18-92.1.13.el5PAE #1 SMP Wed Sep 24 20:07:49 EDT 2008
Submitted: 2009-03-18 11:00 UTC Modified: 2009-03-18 12:14 UTC
From: plukyanchuk at rbc dot ru Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: plukyanchuk at rbc dot ru
New email:
PHP Version: OS:

 

 [2009-03-18 11:00 UTC] plukyanchuk at rbc dot ru
Description:
------------
strange work with compare long string


Reproduce code:
---------------
$s='9223372036854775810';
$w='9223372036854775809';
var_dump($w==$s);
var_dump($w===$s);


$s='000001';
$w='000002';
var_dump($s==$w);
var_dump($s===$w);


Expected result:
----------------
bool(false)
bool(false)
bool(false)
bool(false)

Actual result:
--------------
bool(true)
bool(false)
bool(false)
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-18 11:41 UTC] plukyanchuk at rbc dot ru
not a bug
using 32bit system.
sorry
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Dec 10 10:00:01 2025 UTC