I used object references in my code, passed their functions, i.e.

<?php IniModule(&$site,'register'); ?> 

Where $site is an instance of a class. But dropping it to my local server on the tablet gave me an error:

"call-time pass-by-reference has been removed" .

It means that the links are outdated. Why? What to replace? Does the object get transferred?

1 answer 1

Link to an object? What for? The object is passed by value. You can successfully change it inside the function.