quickapps / cms

Modular CMS powered by CakePHP
GNU General Public License v3.0
164 stars 69 forks source link

Call-time pass-by-reference has been removed (on PHP 5.4 server) #79

Closed Gabri closed 12 years ago

Gabri commented 12 years ago

I've had this blocking problem when I uploaded the website for testing on a server with php 5.4: Fatal Error Error: Call-time pass-by-reference has been removed File: /home/gabri/webapps/italiailati/QuickApps/Controller/AppController.php
Line: 107

For now I removed the '&' char at line 107...

From documentation: There is no reference sign on a function call - only on function definitions. Function definitions alone are enough to correctly pass the argument by reference. As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);