mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
8ad0c6d543
- fix possible leak in statName and statIndex - add addEmptyDir() method - add zip_stat_init,zip_clear_error and zip_file_clear_error - add tests - Fix protos (Hannes) - setComment return value on success (Hannes)
20 lines
357 B
PHP
20 lines
357 B
PHP
--TEST--
|
|
zip_entry_read() function
|
|
--SKIPIF--
|
|
<?php
|
|
/* $Id$ */
|
|
if(!extension_loaded('zip')) die('skip');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
|
|
$entry = zip_read($zip);
|
|
if (!zip_entry_open($zip, $entry, "r")) die("Failure");
|
|
echo zip_entry_read($entry);
|
|
zip_entry_close($entry);
|
|
zip_close($zip);
|
|
|
|
?>
|
|
--EXPECT--
|
|
foo
|