Skip to content

Commit

Permalink
Check APC version after for app/check
Browse files Browse the repository at this point in the history
  • Loading branch information
stealth35 committed Jul 26, 2011
1 parent c0fbc7c commit 530cd13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/check.php
Expand Up @@ -64,13 +64,14 @@
}

$accelerator =
((version_compare(phpversion('apc'), '3.0.17', '>=') && ini_get('apc.enabled'))
(function_exists('apc_store') && ini_get('apc.enabled'))
||
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
||
function_exists('xcache_set')
;
check($accelerator, 'Checking that a PHP accelerator is installed', 'Install a PHP accelerator like APC (highly recommended)', false);
check(function_exists('apc_store') && ini_get('apc.enabled') && version_compare(phpversion('apc'), '3.0.17', '>='), 'Checking that the APC version is at least 3.0.17', 'Upgrade your intl extension with a newer ICU version (4+)', true);

check(!ini_get('short_open_tag'), 'Checking that php.ini has short_open_tag set to off', 'Set short_open_tag to off in php.ini', false);
check(!ini_get('magic_quotes_gpc'), 'Checking that php.ini has magic_quotes_gpc set to off', 'Set magic_quotes_gpc to off in php.ini', false);
Expand Down

0 comments on commit 530cd13

Please sign in to comment.