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. ind:\vhost\include\inc_custom_fields.php on line178
*/
我把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
ps
文档注解为:
是否启用在函数调用时强制参数被按照引用传递。此方法已不被赞成并在 PHP/Zend 未来的版本中很可能不再支持。鼓励使用的方法是在函数定义中指定哪些参数应该用引用传递。鼓励大家尝试关闭此选项并确保脚本能够正常运行,以确保该脚本也能在未来的版本中运行(每次使用此特性都会收到一条警告,参数会被按值传递而不是按照引用传递)。
在函数调用时通过引用传递参数是不推荐的,因为它影响到了代码的整洁。如果函数的参数没有声明作为引用传递,函数可以通过未写入文档的方法修改其参数。要避免其副作用,最好仅在函数声明时指定那个参数需要通过引用传递。
要引用传入参数,可以两种方法;
- 1,
- function test1($a,$b){
- $b = "fun_test1";
- return;
- }
- $a = "a_value";
- $b = "b_value";
- test1($a,&$b);
- 2,
- function test2($a,&$b){
- $b = "fun_test2";
- return;
- }
- $a = "a_value";
- $b = "b_value";
- test2($a,$b);
1, function test1($a,$b){ $b = "fun_test1"; return; } $a = "a_value"; $b = "b_value"; test1($a,&$b); 2, function test2($a,&$b){ $b = "fun_test2"; return; } $a = "a_value"; $b = "b_value"; test2($a,$b);
第一种情况就有可能会出现“Call-time pass-by-reference has been deprecated”这样的警告,所以建议使用第二种。
相关推荐
Warning: Call-time pass-by-reference has been deprecated in E:\Program Files\EasyPHP 3.0\www\bugfree\Include\Class\XmlParse.class.php on line 46 Warning: Call-time pass-by-reference has been ...
在查询metalink时你会发现原因是由于缺少了libXp.so.6包,根据Oracle的解决方案需要安装xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm包。不过REDHAT AS4中包含的相应的包版本比较低。于是从Oracle提供的...
deprecated-list.html help-doc.html index-all.html index.html overview-frame.html overview-summary.html overview-tree.html package-list script.js serialized-form.html stylesheet.css ComException.html ...
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
2017-06-05T14:30:56.109868Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 960c533e-49fb-11e7-91f2-...
deprecated-2.0.1.gem 下载
/home/data/anaconda3/lib/python3.7/site-packages/pymysql/cursors.py:170: Warning: (1681, 'Integer display width is deprecated and will be removed in a future release.') result = self._query(query) ...
xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2.1.x86_64.rpm
编译qtcreator源码,在make过程中报错(我这里是qtcreator4.4.1,其他版本也会有同样的错误,解决方法相同) g++ -c -pipe -fPIC -fpermissive -finline-functions -Wno-long-long -O2 -std=gnu++1y -fvisibility=...
ifconfig命令找不到
压缩包有如下几个常用rpm compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm glibc-kernheaders-2.4-9.1.100.EL.x86_...xorg-x11-deprecated-libs-devel-6.8.2-1.EL.63.WB1.i386.rpm xorg-x11-libs-6.8.2-1.EL.52.i386.rpm
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error occurred during initialization of VM Initial heap size ...
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
Deprecated! Support-v7 24.2.0 以上的版本提供了SnapHelper,可以很方便的实现这种效果。本项目不再维护。 CleverRecyclerView CleverRecyclerView 是一个基于RecyclerView的扩展库,提供了与ViewPager类似的滑动...
yum 下载xorg-x11-deprecated-libs-6.8.2-31.i386.rpm 有问题,使用该报的rpm文件
It usually has to be installed from an administrative command prompt. Standard web browser plug-in (Netscape-style) For Firefox, and other browsers that support plug-ins. NOTICE: Firefox and Chrome ...
autoprefixer-core已弃用,请改用autoprefixer 软件包autoprefixer和autoprefixer-core在6.0版本中合并。 因此,请在package.json和代码autoprefixer-core替换为autoprefixer 。 该项目是第一次迁移助手。...
【NPM解决方案】npm WARN deprecated core-js@2.6.11: core-js@< 3 is no longer maintained and not recommended for usage Administrator@GuoXinYu MINGW64 /d $ npm install -g vuepress npm WARN deprecated ...
安装文档与rpm包,全部 # rpm -ivh compat-db-4.1.25-9.i386.rpm # rpm -ivh compat-gcc-32-3.2.3-47.3.i386.rpm # rpm -ivh compat-gcc-32-c++-...# rpm -ivh xorg-x11-deprecated-libs-6.8.2-1.EL.13.36.i386.rpm