Doc #69407 [Asn]: Better describe object-to-object comparison
| From: | cmb@php.net | Date: | Sat, 11 Aug 2018 12:52:08 +0000 |
| Subject: | Doc #69407 [Asn]: Better describe object-to-object comparison | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15954@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69407&edit=1
ID: 69407
Updated by: cmb@php.net
Reported by: salathe@php.net
Summary: Better describe object-to-object comparison
Status: Assigned
Type: Documentation Problem
Package: Class/Object related
PHP Version: Irrelevant
Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2015-04-09 09:12:18] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69407&edit=1