mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9983] Also check generic APC enable/disable.
PHPBB3-9983
This commit is contained in:
parent
2e851baab9
commit
db6b11a390
1 changed files with 6 additions and 0 deletions
6
tests/cache/apc_driver_test.php
vendored
6
tests/cache/apc_driver_test.php
vendored
|
@ -31,6 +31,12 @@ class phpbb_cache_apc_driver_test extends phpbb_cache_common_test_case
|
||||||
}
|
}
|
||||||
|
|
||||||
$php_ini = new phpbb_php_ini;
|
$php_ini = new phpbb_php_ini;
|
||||||
|
|
||||||
|
if (!$php_ini->get_bool('apc.enabled'))
|
||||||
|
{
|
||||||
|
self::markTestSkipped('APC is not enabled. Make sure apc.enabled=1 in php.ini');
|
||||||
|
}
|
||||||
|
|
||||||
if (PHP_SAPI == 'cli' && !$php_ini->get_bool('apc.enable_cli'))
|
if (PHP_SAPI == 'cli' && !$php_ini->get_bool('apc.enable_cli'))
|
||||||
{
|
{
|
||||||
self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini');
|
self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini');
|
||||||
|
|
Loading…
Add table
Reference in a new issue