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

在跑php脚本的时候遇到如下警告:

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

原因

遇到这个警告的原因是在php脚本里使用了当前PHP版本不建议使用的函数或方法,或者使用了不恰当的引用。

解决办法

vi php.ini

display_errors = Off //不显示错误

or

allow_call_time_pass_reference = On

参考

http://stackoverflow.com/questions/4665782/php-warning-call-time-pass-by-reference-has-been-deprecated

https://www.drupal.org/node/335646

JackSun

JackSun

I'm a coder.

Leave a Reply

Your email address will not be published.