note 46058 deleted from language.oop.magic-functions by danbrown

From: Date: Sat, 07 Nov 2009 18:54:59 +0000
Subject: note 46058 deleted from language.oop.magic-functions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162506@lists.php.net to get a copy of this message
Note Submitter: j dot gizmo at aon dot at ---- re: last post are you sure the problem with global variables doesn't arise from the use of references? <? class test { function __wakeup () { global $link; //will not work $link =& $this; //will work $GLOBALS['link'] =& $this; } } ?> see the section on references for further details

« previous php.notes (#162506) next »