Welcome Guest, Not a member yet? Register   Sign In
Only variables should be assigned by reference
#1

[eluser]skunkbad[/eluser]
Quote:An error occurred in script 'C:\xampp\htdocs\community-cart-v2\system\core\Controller.php' on line 51:
Only variables should be assigned by reference

If I take out the ampersand on line 51 of CI_Controller, then the error goes away, but what is triggering the error? I converted another site to V2.0 last night and it doesn't give the error.
#2

[eluser]skunkbad[/eluser]
Actually, I found that the error was being shown as a result of a custom error handler set to E_ALL | E_STRICT. Maybe I'm wrong, but I thought that in php5 everything is passed by reference automatically, eliminating the need to use the =&. Am I wrong? Should all =& be changed in Reactor?




Theme © iAndrew 2016 - Forum software by © MyBB