References to PHP objects
I used references to objects in my code, passed them to functions, i.e.
<?php IniModule(&$site,'register'); ?>
Where $site
is an instance of the class. But after resetting this to my local server, the tablet gave me an error:
"call-time pass-by-reference has been removed"
.
It means that the links are outdated. Why? How to replace it? Is it possible to transmit the object?
0
1 answers
A reference to the object? What for? The object is already not passed by value. You can successfully change it inside the function.
0
Author: vkovalchuk88, 2013-11-06 20:40:20