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