note 75643 deleted from language.references.spot by bjori

From: Date: Sun, 10 Jun 2007 15:22:22 +0000
Subject: note 75643 deleted from language.references.spot by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127357@lists.php.net to get a copy of this message
Note Submitter: Tomkiewicz Reason: useless ---- 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!

« previous php.notes (#127357) next »