summaryrefslogtreecommitdiff
path: root/ext/zip/tests/zip_entry_compressionmethod.phpt
blob: 970ea7a8c0bcf8bdca855823f3577845e3277dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
zip_entry_compressionmethod() function
--SKIPIF--
<?php
/* $Id$ */
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
if (!is_resource($zip)) die("Failure");
$entries = 0;
while ($entry = zip_read($zip)) {
  echo zip_entry_compressionmethod($entry)."\n";
}
zip_close($zip);

?>
--EXPECT--
stored
stored
stored
deflated