首页 > 代码库 > Warning: Call-time pass-by-reference has been deprecated

Warning: Call-time pass-by-reference has been deprecated

今天出现的问题:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of in_array_two_dimension(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in D:\wamp\www\myApriori.php on line 48

是因为在函数中传递引用。提示在php.ini文件中开启allow_call_time_pass_reference。

原本 改off为ON,重启,解决。

Warning: Call-time pass-by-reference has been deprecated