Fatal error: Call-time pass-by-reference has been removed in

Solution: It means that the reference pass parameter has been removed when calling.

After PHP is upgraded to version 5.4, it is not possible to call functions by passing parameters through test(&$a).

In fact, it is the wrong way to call test(&$a), but the error level before PHP5.4 is only Deprecated. The correct way is to define the method:

function test(& KaTeX parse error: Expected'EOF', got'&' at position 9: a) Just add the reference symbol & ̲, and call te directly when calling... a);

solution:

Method 1: Check your php.ini configuration file, adjust the allow_call_time_pass_reference parameter to true, and restart the server to try.

Method 2: Modify the PHP program, when the function is defined:

function test(& $var) {

//other code

}

And just pass the parameters directly when calling: test($var);

Guess you like

Origin blog.csdn.net/weixin_42478365/article/details/115016112