码迷,mamicode.com
首页 > 其他好文 > 详细

ECshop Strict Standards: Only variables should be passed by reference in解决办法

时间:2016-05-25 22:03:07      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

本文章来给各位同学介绍关于ECshop Strict Standards: Only variables should be passed by reference in解决办法,希望此教程 对各位同学有所帮助。

 

错误提示

Strict Standards: Only variables should be passed by reference in D:/wamp/ecshop/includes/cls_template.php on line 406

用软件打开406行是这句话$tag_sel = array_shift(explode(‘ ‘, $tag));

解决方法

5.3以上版本的问题,应该也和配置有关

只要406行把这一句拆成两句就没有问题了

 代码如下 复制代码

$tag_sel = array_shift(explode(‘ ‘, $tag));

改成:

$tag_arr = explode(‘ ‘, $tag);
$tag_sel = array_shift($tag_arr);

因为array_shift的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值

或则如果这样配置的话:

error_reporting = E_ALL | E_STRICT

 

 

ECshop Strict Standards: Only variables should be passed by reference in解决办法

标签:

原文地址:http://www.cnblogs.com/mfc-itblog/p/5528455.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!