服务器之家:专注于服务器技术及软件下载分享
分类导航

PHP教程|ASP.NET教程|Java教程|ASP教程|编程技术|正则表达式|C/C++|IOS|C#|Swift|Android|VB|R语言|JavaScript|易语言|vb.net|

服务器之家 - 编程语言 - PHP教程 - php提示Call-time pass-by-reference has been deprecated in的解决方法[已测]

php提示Call-time pass-by-reference has been deprecated in的解决方法[已测]

2019-12-31 16:25PHP教程网 PHP教程

今天一个客户配置服务器的时候出现了这个问题,主要是因为他选错php.ini的问题,默认先dist那个比较好,实际应用就选择这个

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 deprecated in E:\Program Files\EasyPHP 3.0\www\bugfree\Include\Class\XmlParse.class.php on line 47 

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 47 

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 48 

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 49 

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 51 

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 56 

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 56 

解决办法如下:修改conf_files目录下php.ini中allow_call_time_pass_reference = On即可。 

如果你找不到php.ini的位置 好了 绝招来了 
在根文件夹下建一个 phpinfo.php 文件 在里面输入如下代码 

复制代码代码如下:

<?php 
phpinfo(); 
?> 


php.ini位置,iis+php一般位于 c:\windows\php.ini
而apache+php一般是 php-apache2handler.ini

延伸 · 阅读

精彩推荐