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