note 72144 added to language.operators.comparison
| From: | php-general at lists dot php dot net | Date: | Thu, 04 Jan 2007 15:11:50 +0000 |
| Subject: | note 72144 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121285@lists.php.net to get a copy of this message | ||
Since php 5.2 the operator == for object vs object is not recursion safe, it will cause a fatal
error if one of the objects contains a refernce to it self (indirect refferences also counts here).
If you are just checking if two object pointers points to the same object use === instead and aviod
this issue (you might get a minimal speed bost too).
----
Server IP: 129.16.214.50
Probable Submitter: 213.66.131.204
----
Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php
Edit -- https://master.php.net/note/edit/72144
Del: integrated -- https://master.php.net/note/delete/72144/integrated
Del: useless -- https://master.php.net/note/delete/72144/useless
Del: bad code -- https://master.php.net/note/delete/72144/bad+code
Del: spam -- https://master.php.net/note/delete/72144/spam
Del: non-english -- https://master.php.net/note/delete/72144/non-english
Del: in docs -- https://master.php.net/note/delete/72144/in+docs
Del: other reasons-- https://master.php.net/note/delete/72144
Reject -- https://master.php.net/note/reject/72144
Search -- https://master.php.net/manage/user-notes.php