echsop 之Strict Standards: Only variables should be passed by reference in******
2016-09-22 20:53
471 查看
今天在部署使用ecshop开发的微分销项目时,在店铺页面出现了很多个Warning:Strict Standards: Only variables should be passed by
reference in ******* \cls_template.php on line 406
打开cls_template.php文件中发现下面这段代码:
$tag_sel = array_shift(explode(' ', $tag));
在开始具体的解决之前,我们需要了解array_shift()函数在php 5.3和5.4两个版本的区别:PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,而我的PHP版本是5.4。
那如何解决呢?方法如下:
$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);
OK,问题解决了。
reference in ******* \cls_template.php on line 406
打开cls_template.php文件中发现下面这段代码:
$tag_sel = array_shift(explode(' ', $tag));
在开始具体的解决之前,我们需要了解array_shift()函数在php 5.3和5.4两个版本的区别:PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,而我的PHP版本是5.4。
那如何解决呢?方法如下:
$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);
OK,问题解决了。
相关文章推荐
- ECshop Strict Standards: Only variables should be passed by reference in
- ecshop Strict standards: Only variables should be passed by reference in flashplay.php on line 181
- Strict Standards: Only variables should be passed by reference in
- ecshop报错Strict Standards: Only variables should be passed by reference in 怎么解决
- php报错:Strict Standards: Only variables should be passed by reference in...
- ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法
- 安装 ecshop后报错 Strict standards: Only variables should be passed by reference in
- php报警:Strict Standards: Only variables should be passed by reference in
- ECshop Strict Standards: Only variables should be passed by reference in
- ECshop Strict Standards: Only variables should be passed by reference in解决办法
- In bugfree, 解决Strict Standards: Only variables should be passed by reference in FuncModel.inc.php
- php 出现Strict Standards: Only variables should be passed by reference in的解决方法
- ECshop Strict Standards: Only variables should be passed by reference in解决办法
- Ecshop安装过程中 出现Strict standards: Only variables should be passed by reference in D:\xxx\www\ECShop
- PHP程序报错Strict Standards: Only variables should be passed by reference in
- php错误:Strict Standards: Only variables should be passed by reference in
- php中出现Strict Standards: Only variables should be passed by reference in的解决方法
- ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法
- ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法
- 解决Strict Standards: Only variables should be passed by reference