php.net |  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: salathe@php.net 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: salathe@php.net
New email:
PHP Version: OS:

 

 [2015-04-09 09:12 UTC] salathe@php.net
Description:
------------
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-09 09:12 UTC] salathe@php.net
-Assigned To: +Assigned To: salathe
 [2018-01-31 10:26 UTC] vrana@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Class/Object related
 [2018-08-11 12:52 UTC] cmb@php.net
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] <http://svn.php.net/viewvc?view=revision&revision=344801>
[2] <http://php.net/manual/en/language.oop5.object-comparison.php#98725>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 13:01:28 2024 UTC