1--TEST-- 2Phar::getSupportedCompression() (zlib 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 is 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(1) { 17 [0]=> 18 string(2) "GZ" 19} 20===DONE=== 21