this statement:
$node_obj =& new someClass($somearg, $moreargs);
generate an error in the latest version of PHP right?
I have tried it on my machine (PHP >= 5.0.0 & <=5.2.17) and I get this error:
Deprecated: Assigning the return value of new by reference is deprecated in test.php on line 1108
Remove the &
.
Objects are passed as reference by default in PHP 5, which is why using the &
is deprecated in this context.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With