1--TEST-- 2zip_entry_close() function: simple and double call 3--SKIPIF-- 4<?php 5if(!extension_loaded('zip')) die('skip'); 6?> 7--FILE-- 8<?php 9$zip = zip_open(__DIR__."/test_procedural.zip"); 10$entry = zip_read($zip); 11echo "entry_open: "; var_dump(zip_entry_open($zip, $entry, "r")); 12echo "entry_close: "; var_dump(zip_entry_close($entry)); 13try { 14 echo "entry_close: "; var_dump(zip_entry_close($entry)); 15} catch (TypeError $e) { 16 echo $e->getMessage(), "\n"; 17} 18zip_close($zip); 19?> 20Done 21--EXPECTF-- 22Deprecated: Function zip_open() is deprecated in %s on line %d 23 24Deprecated: Function zip_read() is deprecated in %s on line %d 25entry_open: 26Deprecated: Function zip_entry_open() is deprecated in %s on line %d 27bool(true) 28entry_close: 29Deprecated: Function zip_entry_close() is deprecated in %s on line %d 30bool(true) 31entry_close: 32Deprecated: Function zip_entry_close() is deprecated in %s on line %d 33zip_entry_close(): supplied resource is not a valid Zip Entry resource 34 35Deprecated: Function zip_close() is deprecated in %s on line %d 36Done 37