|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
49 - 17 = ?
Subscribe to this entry?

 [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: Mon Apr 15 22:01:28 2024 UTC