PHP程序员站--PHP编程开发平台
 当前位置:主页 >> PHP基础 >> 新手专区 >> 

php错误:Call-time pass-by-reference has been deprecated 解决办法

php错误:Call-time pass-by-reference has been deprecated 解决办法

来源:phperz.com  作者:phperz.com  发布时间:2011-10-14
PHP提示错误 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 [runtime function name](). If you would like to enable call-time pass-by-reference,

PHP提示错误 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 [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. However, future versions may not support this any longer. in

解决方法:

方法1:把php.ini的display_errors = on改成display_errors = off

方法2:1. 在PHP.ini中搜索关键字 : allow_call_time_pass_reference 没有的自行建立。有的调整为true

       2. 将 Off 改成 On ,Web Server重起就OK了


延伸阅读:
PHP has encountered an Access Violation 错误的解决方法
php错误:Cannot modify header information出错的原因
PHP的错误信息大全
php中的错误等级与异常处理
php用error_reporting或@或display_errors来忽略错误
Tags: php错误  
最新文章
推荐阅读
月点击排行榜
PHP程序员站 Copyright © 2007-2010,PHPERZ.COM All Rights Reserved 粤ICP备07503606号