note 75643 added to language.references.spot

From: Date: Sat, 09 Jun 2007 23:03:21 +0000
Subject: note 75643 added to language.references.spot
Groups: php.notes 
Request: Send a blank email to php-notes+get-127342@lists.php.net to get a copy of this message
Mildred's way to compare objects is almost great, but... when somebody uses overloading (i.e. __get in PHP5), function _may_ even crash, like this: <?php class someclass { public function __get($varname) { throw new exception('No way!'); } } $ref1 = new someclass; $ref2 = &$ref1; var_dump(is_ref($ref1, $ref2)); ?> causes beautiful uncaught exception... so, be aware! ---- Server IP: 195.136.184.34 Probable Submitter: 212.182.93.26 ---- Manual Page -- http://www.php.net/manual/en/language.references.spot.php Edit -- https://master.php.net/note/edit/75643 Del: integrated -- https://master.php.net/note/delete/75643/integrated Del: useless -- https://master.php.net/note/delete/75643/useless Del: bad code -- https://master.php.net/note/delete/75643/bad+code Del: spam -- https://master.php.net/note/delete/75643/spam Del: non-english -- https://master.php.net/note/delete/75643/non-english Del: in docs -- https://master.php.net/note/delete/75643/in+docs Del: other reasons-- https://master.php.net/note/delete/75643 Reject -- https://master.php.net/note/reject/75643 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127342) next »