|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #633 PHP compares arrays wrongly
Submitted: 1998-08-08 22:56 UTC Modified: 1998-08-13 16:23 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Final Release OS: Amiga OS
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: mlemos at acm dot org
New email:
PHP Version: OS:


 [1998-08-08 22:56 UTC] mlemos at acm dot org
It seems that PHP either is not ready to compare arrays or
it just compares different arrays wrongly saying they are

Just try this:

    echo "Different\n";
    echo "Equal\n";

If  PHP is not ready to compare arrays or objects for the matter, it should
issue  an  error or a warning at least when you have error reporting set to


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-13 16:23 UTC] zeev
This now generates a warning.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 13:01:27 2024 UTC