|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62579 two strings compare
Submitted: 2012-07-16 12:21 UTC Modified: 2012-07-16 12:51 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.4.5RC1 OS: win7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bugzilla33 at gmail dot com
New email:
PHP Version: OS:


 [2012-07-16 12:21 UTC] bugzilla33 at gmail dot com
two strings compare

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-16 12:36 UTC]
=== should be used for exact matching.
 [2012-07-16 12:41 UTC] bugzilla33 at gmail dot com
Why should be used === for exact matching?

left is string and right is string - the same type
 [2012-07-16 12:49 UTC]
I think you'll find this page useful :)
 [2012-07-16 12:51 UTC]
-Status: Open +Status: Not a bug
 [2012-07-16 12:51 UTC]
Also this for further reading
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 21:01:23 2020 UTC