In bugfree, 解決Strict Standards: Only variables should be passed by reference in FuncModel.inc.php

zm_21發表於2014-05-23

Line 1160    $ProjectInfo = array_pop(testGetProjectList("ProjectID = '{$ProjectID}'"));

改成:

 $array = testGetProjectList("ProjectID = '{$ProjectID}'");
 $ProjectInfo = array_pop($array);

原因:array_pop引數是引用傳遞的,php 5.3以上預設只能傳遞具體的變數,而不能通過函式返回值

相關文章