mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11045] Explicitely check for zlib and bz2
PHPBB3-11045
This commit is contained in:
@@ -38,9 +38,8 @@ class phpbb_compress_test extends phpbb_test_case
|
|||||||
$phpbb_root_path = '';
|
$phpbb_root_path = '';
|
||||||
|
|
||||||
$this->path = __DIR__ . '/fixtures/';
|
$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');
|
$this->markTestSkipped('PHP needs to be compiled with --with-zlib and --with-bz2 in order to run these tests');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user