* install: check if the apcu extension is loaded when install zentao.

This commit is contained in:
liugang
2024-05-22 16:23:37 +08:00
committed by caoyanyi
parent d68658e572
commit 4dbe8cee49
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -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();
+1 -1
View File
@@ -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)
{
+12
View File
@@ -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.