I'm looking at some old code that yields an error Strict Notice: Only variables should be assigned by reference
on the code below on PHP 5.4.
$temp = &$xml->xpath(…);
Was the &
ever needed in this operation in the earlier versions of PHP? xpath()
already returns data according to current PHP documentation, so it would be assigned to $temp
. I'm just not sure what it is or was trying to do by reference at the time it was written.