diff --git a/apc.install b/apc.install index e3298da..9b34f07 100644 --- a/apc.install +++ b/apc.install @@ -12,15 +12,17 @@ function apc_requirements($phase) { $apc_enabled = (function_exists('apc_cache_info') && ($cache = @apc_cache_info('user', TRUE))); if (extension_loaded('apcu')) { - $meets_version = version_compare(phpversion('apc'), '4.0.3') >= 0; + $version = phpversion('apcu'); + $meets_version = version_compare($version, '4.0.3') >= 0; } else { - $meets_version = version_compare(phpversion('apc'), '3.1.1') >= 0; + $version = phpversion('apc'); + $meets_version = version_compare($version, '3.1.1') >= 0; } $requirements['apc'] = array( 'title' => $t('APC'), - 'value' => $apc_enabled ? ($meets_version ? phpversion('apc') : $t('APC needs APC version >=3.1.1 or APCu version >=4.0.3')) : $t('Not available'), + 'value' => $apc_enabled ? ($meets_version ? $version : $t('APC needs APC version >=3.1.1 or APCu version >=4.0.3')) : $t('Not available'), 'severity' => $apc_enabled && $meets_version ? ($cache['num_entries'] ? REQUIREMENT_OK : REQUIREMENT_WARNING) : REQUIREMENT_ERROR, );