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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -