|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69407 Better describe object-to-object comparison
Submitted: 2015-04-09 09:12 UTC Modified: 2018-08-11 12:52 UTC
From: Assigned: salathe (profile)
Status: Assigned Package: Class/Object related
PHP Version: Irrelevant OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2015-04-09 09:12 UTC]
On the "Comparison Operators" page [1], the "Comparison with Various Types" table describes object-to-object comparison as:

  Built-in classes can define its own comparison, different
  classes are uncomparable, same class - compare properties
  the same way as arrays (PHP 4), PHP 5 has its own explanation

We should wave bye-bye to the "PHP 4" part and summarise the "own explanation" on this page.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-09 09:12 UTC]
-Assigned To: +Assigned To: salathe
 [2018-01-31 10:26 UTC]
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Class/Object related
 [2018-08-11 12:52 UTC]
The PHP 4 info has already been removed[1]; I'm not sure whether
we should summarize the info here (DRY).  Either way, we should
document ordering comparisons (less than etc.)[2].

[1] <>
[2] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 02:01:30 2024 UTC