1--TEST-- 2Phar::getSupportedCompression() (bz2 only) 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 is available"); ?> 8--INI-- 9phar.require_hash=0 10--FILE-- 11<?php 12var_dump(Phar::getSupportedCompression()); 13?> 14===DONE=== 15--EXPECT-- 16array(1) { 17 [0]=> 18 string(5) "BZIP2" 19} 20===DONE=== 21