ECshop Strict Standards: Only variables should be passed by reference in解决办法
2016-05-25 20:51
519 查看
本文章来给各位同学介绍关于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行把这一句拆成两句就没有问题了
因为array_shift的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值
或则如果这样配置的话:
error_reporting = E_ALL | E_STRICT
错误提示
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); |
或则如果这样配置的话:
error_reporting = E_ALL | E_STRICT
相关文章推荐
- 新一代Ajax API --fetch
- JavaScript实现页面5秒后自动跳转的方法
- 【CSS进阶】伪元素的妙用--单标签之美
- [RxJS] Combination operators: concat, startWith
- CSS 居中问题
- Game of Life
- 4类JavaScript内存泄露及如何避免
- js点击button按钮跳转到另一个新页面
- 176. [USACO Feb07] 奶牛聚会
- 小姿势--JS
- 轻量web服务器开发日记04-buffile结构体的实现
- 2016年5月25日下午(妙味课堂js预热课程-4笔记二)
- JavaScript学习--Item12 undefined 与 null
- ajax 传json到后台servlet接收
- js 阻止冒泡排序
- JavaScript学习--Item11 arguments对象
- JavaScript学习--Item10 闭包(closure)
- LeetCode:Different Ways to Add Parentheses
- JavaScript学习--Item8 函数,方法,构造函数调用 标签: javascript构造函数面向对象函数call
- 前端页面卡顿?或是DOM操作惹的祸,需优化代码