Possible Duplicate:
Only variables can be passed by reference
I am having this error in php
Only variables should be passed by reference
and such warnings are displaying in millions of places. How can I off this error?
Possible Duplicate:
Only variables can be passed by reference
I am having this error in php
Only variables should be passed by reference
and such warnings are displaying in millions of places. How can I off this error?
By only passing variables by reference, not other things.
The "other things" in this case may well be the result of function calls, which are not variables.
e.g.
array_pop(Array(1,2,3,4));
array_pop
takes a reference, but Array(1,2,3,4)
is not a variable and only variables can be passed by reference.
I'd be able to give a better answer if we had any idea what even one of the pieces of your code looked like.