1--TEST-- 2Phar::getSupportedCompression() (bz2 and zlib) 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 6<?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?> 7<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?> 8--INI-- 9phar.require_hash=0 10--FILE-- 11<?php 12var_dump(Phar::getSupportedCompression()); 13?> 14===DONE=== 15--EXPECT-- 16array(2) { 17 [0]=> 18 string(2) "GZ" 19 [1]=> 20 string(5) "BZIP2" 21} 22===DONE===