diff --git a/requirements.php b/requirements.php
index ee6b2cb..ee3184f 100644
--- a/requirements.php
+++ b/requirements.php
@@ -85,12 +85,6 @@ $requirements = array(
'by' => 'MemCache',
'memo' => extension_loaded('memcached') ? 'To use memcached set MemCache::useMemcached to true
.' : ''
),
- array(
- 'name' => 'APC extension',
- 'mandatory' => false,
- 'condition' => extension_loaded('apc'),
- 'by' => 'ApcCache',
- ),
// CAPTCHA:
array(
'name' => 'GD PHP extension with FreeType support',
@@ -124,9 +118,20 @@ $requirements = array(
'phpSmtp' => array(
'name' => 'PHP mail SMTP',
'mandatory' => false,
- 'condition' => strlen(ini_get('SMTP'))>0,
+ 'condition' => strlen(ini_get('SMTP')) > 0,
'by' => 'Email sending',
'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' => 'ApcCache',
+ );
+}
+
$requirementsChecker->checkYii()->check($requirements)->render();