php 出现Strict Standards: Only variables should be passed by reference in的解决方法

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php 出现Strict Standards: Only variables should be passed by reference in的解决方法脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

这个问题多是因为引用传递参数引起的,解决办法一是修改代码不使用引用传递;另一个办法是修改PHP配置文件修改error_reporting 其值改为error_reporting = E_ALL& ~E_NOTICE。或者修改函数中的引用方式即可。

ps:修改配置文件时,最好是复制一行,注掉,然后再改,如果需要随时切回。

ECShop出现Strict Standards: Only VARiables should be passed by reference in的解决方法

今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.COM\cls_template.PHP on line 418

解决办法:

打开cls_template.PHP文件中发现下面这段代码

<PRe class="brush:PHp;"> $tag_sel = array_shift(explode(' ',$tag));

脚本宝典总结

以上是脚本宝典为你收集整理的php 出现Strict Standards: Only variables should be passed by reference in的解决方法全部内容,希望文章能够帮你解决php 出现Strict Standards: Only variables should be passed by reference in的解决方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。