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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to