Since references are more like hardlinks than pointers, it is not possible
to change a reference to an object by using that same reference. For
example:
The following WILL NOT WORK as expected and may even crash
the PHP interpreter:
$object =&
$object->getNext();
However, by changing the previous statement
to use a temporary reference, this WILL WORK:
$temp =&
$object;
$object =& $temp->getNext();