1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 05:25:01 +02:00

[ticket/11045] Explicitely check for zlib and bz2

PHPBB3-11045
This commit is contained in:
Fyorl 2012-08-10 12:10:37 +01:00
parent 570502e4a3
commit 83a5326077

View File

@ -38,9 +38,8 @@ class phpbb_compress_test extends phpbb_test_case
$phpbb_root_path = '';
$this->path = __DIR__ . '/fixtures/';
$compress = new compress();
if (sizeof($compress->methods()) < 4)
if (!@extension_loaded('zlib') || !@extension_loaded('bz2'))
{
$this->markTestSkipped('PHP needs to be compiled with --with-zlib and --with-bz2 in order to run these tests');
}