note 99899 added to language.oop5.object-comparison

From: Date: Tue, 14 Sep 2010 07:02:03 +0000
Subject: note 99899 added to language.oop5.object-comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-172533@lists.php.net to get a copy of this message
Invalid object comparison: <? $a1 = new stdClass(); $a2 = new stdClass(); $a1->a = 1; $a1->b = 2; $a2->b = 1; $a2->a = 2; var_dump($a1 > $a2, $a1 < $a2); // Results: // ----------- // bool(true) // bool(true) ?> It works in php4, php5.2, php5.3, php6.0-dev. ---- Server IP: 69.147.83.197 Probable Submitter: 195.64.216.50 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.object-comparison.php Edit -- https://master.php.net/note/edit/99899 Del: integrated -- https://master.php.net/note/delete/99899/integrated Del: useless -- https://master.php.net/note/delete/99899/useless Del: bad code -- https://master.php.net/note/delete/99899/bad+code Del: spam -- https://master.php.net/note/delete/99899/spam Del: non-english -- https://master.php.net/note/delete/99899/non-english Del: in docs -- https://master.php.net/note/delete/99899/in+docs Del: other reasons-- https://master.php.net/note/delete/99899 Reject -- https://master.php.net/note/reject/99899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172533) next »