As I was revieweing PHP sources to find the deprecated call-time-references, I found following 2 things in 3rd party code:
#1
$x = array(&$this, $a, $b);
#2
&$this->foo();
I know that &
is meant for marking references. But it makes no sense to me.
In re. #1: When I use array($this)
, won't there be a reference saved in the array, too?
In re. #2: When I call foo() of my own instance, why do I need to use $this
as reference?