淘主机 发表于 2008-5-12 16:45:28

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. in d:\vhost\include\inc_custom_fields.php on line 178
*/

我把php.ini的display_errors = on改成display_errors = off // (不显示错误)
就不显示了。

虽然没有什么影响。但是心里还是有个疙瘩。。。
百度上没有找到什么答案,然后在google上 找到了。

修改php.ini就可以了。

1. 在PHP.ini中搜索关键字 : allow_call_time_pass_reference 没有的自行建立。
2. 将 Off 改成 On ,Web Server重起就OK了~
allow_call_time_pass_reference = Off 变成 allow_call_time_pass_reference = On
页: [1]
查看完整版本: Warning: Call-time pass-by-reference has been deprecated解决方法