Reference of $this in 5.1

From: Date: Sat, 17 Sep 2005 18:11:10 +0000
Subject: Reference of $this in 5.1
Groups: php.internals 
Request: Send a blank email to internals+get-19070@lists.php.net to get a copy of this message
I'm running into a BC break between 5.1 and 5.0 & 4.x. It seems like some code in 5.1 to prevent re-assigning $this also prevents taking a reference of $this. The following bug report for this situation was marked Bogus: http://bugs.php.net/bug.php?id=34358 However, I would like to ask for an explanation of why $this->ref =& $this is a valid usage while $ref =& $this; is not. Thanks, Jeff Moore

« previous php.internals (#19070) next »