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));

解決方法php

5.3以上版本的問題,應該也和配置有關函數

只要406行把這一句拆成兩句就沒有問題了post

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

改爲:code

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

由於array_shift的參數是引用傳遞的,5.3以上默認只能傳遞具體的變量,而不能經過函數返回值get

或則若是這樣配置的話:變量

error_reporting = E_ALL | E_STRICT

轉載自:http://www.9958.pw/post/ecshop_error_01sed

相關文章
相關標籤/搜索