My site has a deprecated error at this line:
$obj =& new $class($table,$primkeyArr,$this);
it is because of &. It gives this error:
Deprecated: Assigning the return value of new by reference is deprecated in ....
It is a issue in php 5.3.
If I remove the & from this line, the error does away. But I don’t know if it causes any problem if I put my site on a server with lower PHP version (5.2) or not.
Will removing the & work ok both in PHP 5.2 and in PHP 5.3?
In PHP 5, objects are handled in a reference-like manner by default. So removing the
&probably won’t change anything.But as assigning by reference breaks old references, there might still be a difference.