We recently needed to update the version of mysql
and when installing the repos and proceeding to install mysql
these repos, they in turn updated the server, php
affecting the functionality of the system we have running. After acting normally it now throws this error:
Fatal error: Call-time pass-by-reference has been removed in /location/of/rootfolder Line of code####
So we need to downgrade the version that was previously running. If someone can give me a hand and guide me on how to do it, I would be infinitely grateful.
The indicated error is due to one of the incompatibilities of versions 5.3 and 5.4, a list can be seen here , specifically the incompatibility is:
In the pass-by-reference documentation we find a note that does not state the following:
Summarizing this means that function calls passing variable as reference is deprecated, in PHP 5.3 it issued a warning and in 5.4 a fatal error. Example:
Also in the documentation we can see that only the following can be passed by reference:
If only this is the error you've had when migrating from PHP 5.3.x to PHP 5.4.x, my recommendation is that you correct the code by removing the references, that is, removing the & (ampersand or et) before the variables in the functions.