* install: check if the apcu extension is loaded when install zentao.
This commit is contained in:
@@ -94,6 +94,7 @@ class install extends control
|
||||
$this->view->curlResult = $this->installZen->checkCURL();
|
||||
$this->view->filterResult = $this->installZen->checkFilter();
|
||||
$this->view->iconvResult = $this->installZen->checkIconv();
|
||||
$this->view->apcuResult = $this->installZen->checkAPCu();
|
||||
$this->view->tmpRootInfo = $this->installZen->getTmpRoot();
|
||||
$this->view->tmpRootResult = $this->installZen->checkTmpRoot();
|
||||
$this->view->dataRootInfo = $this->installZen->getDataRoot();
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace zin;
|
||||
set::zui(true);
|
||||
|
||||
$checkTrs = array();
|
||||
$extendItems = array('pdo', 'pdoMySQL', 'json', 'openssl', 'mbstring', 'zlib', 'curl', 'filter', 'iconv');
|
||||
$extendItems = array('pdo', 'pdoMySQL', 'json', 'openssl', 'mbstring', 'zlib', 'curl', 'filter', 'iconv', 'apcu');
|
||||
$dirItems = array('tmpRoot', 'dataRoot', 'session');
|
||||
foreach($extendItems as $extendItem)
|
||||
{
|
||||
|
||||
@@ -188,6 +188,18 @@ class installZen extends install
|
||||
return extension_loaded('iconv') ? 'ok' : 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否安装了apcu扩展。
|
||||
* Check apcu extension.
|
||||
*
|
||||
* @access protected
|
||||
* @return string ok|fail
|
||||
*/
|
||||
protected function checkAPCu(): string
|
||||
{
|
||||
return extension_loaded('apcu') ? 'ok' : 'fail';
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查tmp目录的完整性和可写性。
|
||||
* Check tmpRoot.
|
||||
|
||||
Reference in New Issue
Block a user