今天上傳將PHP程式,上傳到一台虛擬主機中
出現以下的錯誤訊息
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). 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 /home/XXX/XXX/inc_log.php on line 6
檢查一下,原來是PHP不建議此種寫法
function aaa($id){ } aaa(&$id); |
要修改成以下方式就可以了
function aaa(&$id){ } aaa($id); |
解決方法還可以將php.ini中
allow_call_time_pass_reference = On |
全站熱搜
留言列表