【发布时间】:2016-06-04 08:24:15
【问题描述】:
因为我使用的是 PHP 5.6,所以我有这个警告(不是 PHP 5.2):
PHP Strict Standards: Only variables should be passed by reference in blockcategories_top.php on line 157
这是第 157 行:
line 155 if ($cookie->last_visited_category) {
line 156 $c = new Category(intval($cookie->last_visited_category));
line 157 $oldies = array_pop($c->getParentsCategories());
line 158 $oldies = $oldies['id_category'];
line 159 $smarty->assign('oldies', $oldies);
line 160 }
请问,我该如何解决? :)
谢谢!
【问题讨论】:
标签: php standards strict php-5.6 php-5.2