Bug #3216 [NEW]: ZIP package reading bug
| From: | bolk at hitv dot ru | Date: | Sun, 16 Jan 2005 09:52:18 +0000 |
| Subject: | Bug #3216 [NEW]: ZIP package reading bug | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-3732@lists.php.net to get a copy of this message | ||
From: bolk at hitv dot ru
Operating system: Linux RedHat9
PHP version: 5.0.3
Package: Bug System
Bug Type: Bug
Bug description: ZIP package reading bug
Description:
------------
I've compiled ZIP package as shared module. Package walk through the
entire archive but doesn't read entry content.
Reproduce code:
---------------
<?
$zip = zip_open($_FILES['file']['tmp_name']);
if ($zip)
{
while ($zip_entry = zip_read($zip))
{
$txt = zip_entry_read($zip_entry,
zip_entry_filesize($zip_entry));
echo $txt;
}
}
?>
Expected result:
----------------
variable $txt is empty
Actual result:
--------------
file content in $txt
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=3216&edit=1
--