OPcache checking less php 5.5
This commit is contained in:
parent
45646d2a30
commit
1dd087dbf1
@ -85,12 +85,6 @@ $requirements = array(
|
|||||||
'by' => '<a href="http://www.yiiframework.com/doc-2.0/yii-caching-memcache.html">MemCache</a>',
|
'by' => '<a href="http://www.yiiframework.com/doc-2.0/yii-caching-memcache.html">MemCache</a>',
|
||||||
'memo' => extension_loaded('memcached') ? 'To use memcached set <a href="http://www.yiiframework.com/doc-2.0/yii-caching-memcache.html#$useMemcached-detail">MemCache::useMemcached</a> to <code>true</code>.' : ''
|
'memo' => extension_loaded('memcached') ? 'To use memcached set <a href="http://www.yiiframework.com/doc-2.0/yii-caching-memcache.html#$useMemcached-detail">MemCache::useMemcached</a> to <code>true</code>.' : ''
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'name' => 'APC extension',
|
|
||||||
'mandatory' => false,
|
|
||||||
'condition' => extension_loaded('apc'),
|
|
||||||
'by' => '<a href="http://www.yiiframework.com/doc-2.0/yii-caching-apccache.html">ApcCache</a>',
|
|
||||||
),
|
|
||||||
// CAPTCHA:
|
// CAPTCHA:
|
||||||
array(
|
array(
|
||||||
'name' => 'GD PHP extension with FreeType support',
|
'name' => 'GD PHP extension with FreeType support',
|
||||||
@ -124,9 +118,20 @@ $requirements = array(
|
|||||||
'phpSmtp' => array(
|
'phpSmtp' => array(
|
||||||
'name' => 'PHP mail SMTP',
|
'name' => 'PHP mail SMTP',
|
||||||
'mandatory' => false,
|
'mandatory' => false,
|
||||||
'condition' => strlen(ini_get('SMTP'))>0,
|
'condition' => strlen(ini_get('SMTP')) > 0,
|
||||||
'by' => 'Email sending',
|
'by' => 'Email sending',
|
||||||
'memo' => 'PHP mail SMTP server required',
|
'memo' => 'PHP mail SMTP server required',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// OPcache check
|
||||||
|
if (!version_compare(phpversion(), '5.5', '>=')) {
|
||||||
|
$requirements[] = array(
|
||||||
|
'name' => 'APC extension',
|
||||||
|
'mandatory' => false,
|
||||||
|
'condition' => extension_loaded('apc'),
|
||||||
|
'by' => '<a href="http://www.yiiframework.com/doc-2.0/yii-caching-apccache.html">ApcCache</a>',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$requirementsChecker->checkYii()->check($requirements)->render();
|
$requirementsChecker->checkYii()->check($requirements)->render();
|
||||||
|
Loading…
Reference in New Issue
Block a user