时间:2021-07-01 10:21:17 帮助过:4人阅读
解决办法
第一种方法、 把php.ini的display_errors = on改成display_errors = off (不显示错误)
第二种方法、allow_call_time_pass_reference = Off 变成 allow_call_time_pass_reference = On
上面是对php.ini进行修改,但是如果你没有权限可以修改程序,下面我举个简单的例子
可能出现问题的
代码如下 | |
function test1($a,$b){ $b = "fun_test1"; return; } $a = "a_value"; $b = "b_value"; test1($a,&$b); |
不会有问题出现
代码如下 | |
function test2($a,&$b){ $b = "fun_test2"; return; } $a = "a_value"; $b = "b_value"; test2($a,$b); |
http://www.bkjia.com/PHPjc/632128.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632128.htmlTechArticle今天在写引用时突然出现了Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declar...