按下面方法修改基礎(chǔ)即可,測試PHP5.4,PHP5.5測試安裝通過。
(1)includes/cls_templates.php
array_shift() 的參數(shù)是引用傳遞的,5.3以上默認只能傳遞具體的變量,而不能通過函數(shù)返回值 end(&array);
修改方法:
將 $tag_sel = array_shift(explode(‘ ‘, $tag)); 這句話拆開為兩句。
$tag_arr = explode(‘ ‘, $tag);
$tag_sel = array_shift($tag_arr);
(2)includes/cls_base.php
修改gd_version函數(shù)為:
function gd_version()
//static function gd_version() //部分版本不兼容可換為這個
{
include_once(ROOT_PATH . 'includes/cls_image.php');
$p = new cls_image();
return $p->gd_version();
}
(3)/includes/lib_main.php
查找修改:$ext = end(explode('.', $tmp));
為
$ext = explode('.',$tmp);
$ext = end($ext);
說明 此僅限于安裝程序后的修改。