php - Unusual notation of passing by reference? -
in legacy php script found following line of code:
$cachelite =& ( "string" );
which provokes error:
parse error: syntax error, unexpected '(', expecting t_new or t_string or t_variable or '$'
is mistake or way of passing reference or else don't know. have enable/disable in php configuration in order work?
you can't assign reference literal value, or expression, in php; has reference variable. have no idea how line of code got there (why $cachelite
being assigned random string anyway?) — mistake in legacy code.
Comments
Post a Comment