PHP5.3中allow_call_time_pass_reference默認是關閉的,如果它是關閉的話,我們在程序中調用函數時,就不能傳遞一個參數的引用過去。如在mdl_productCat.php中有一段:$result = $this->cat_plan(&$cat_id,&$start,&$count,&$curr,&$total);上面就是傳遞的引用,這樣程序應付報錯:Deprecated: Call-time pass-by-reference has been deprecated...因為在shopex的原代碼中這種引用傳遞的地方太多了,可以選擇修改配置文件,開啟allow_call_time_pass_reference。即: