Warning: Call-time pass-by-reference has been deprecated解決方法

今天在寫引用時忽然出現了Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). 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. However, future versions may not support this any longer錯誤,後來才知道緣由是此方法已不被同意並在 PHP/Zend 將來的版本中極可能再也不支持了php

解決辦法this

第一種方法、 把php.ini的display_errors = on改爲display_errors = off (不顯示錯誤)get

第二種方法、allow_call_time_pass_reference = Off 變成 allow_call_time_pass_reference = Onit

問題圓滿解決~~io

相關文章
相關標籤/搜索