summaryrefslogtreecommitdiff
path: root/ext/zip/tests/zip_entry_close.phpt
blob: 82b7819054f49e5eb7765964f95e2111cc1b65ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
zip_entry_close() function: simple and double call
--SKIPIF--
<?php
/* $Id$ */
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$zip    = zip_open(dirname(__FILE__)."/test_procedural.zip");
$entry  = zip_read($zip);
echo "entry_open:  "; var_dump(zip_entry_open($zip, $entry, "r"));
echo "entry_close: "; var_dump(zip_entry_close($entry));
echo "entry_close: "; var_dump(zip_entry_close($entry));
zip_close($zip);
?>
Done
--EXPECTF--
entry_open:  bool(true)
entry_close: bool(true)
entry_close: 
Warning: zip_entry_close(): %d is not a valid Zip Entry resource in %s
bool(false)
Done