summaryrefslogtreecommitdiff
path: root/ext/phar/tests/phar_get_supportedcomp3.phpt
blob: fadb482042b4d1aedff8820618157fd1032a206c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Phar::getSupportedCompression() (zlib only)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
<?php if (extension_loaded("bz2")) die("skip bz2 is available"); ?>
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
--INI--
phar.require_hash=0
--FILE--
<?php
var_dump(Phar::getSupportedCompression());
?>
===DONE===
--EXPECT--
array(1) {
  [0]=>
  string(2) "GZ"
}
===DONE===