Bug #3216 [Opn]: ZIP package reading bug
| From: | bolk at hitv dot ru | Date: | Sun, 16 Jan 2005 09:58:34 +0000 |
| Subject: | Bug #3216 [Opn]: ZIP package reading bug | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-3733@lists.php.net to get a copy of this message | ||
Edit report at http://pecl.php.net/bugs/bug.php?id=3216&edit=1
ID: 3216
User updated by: bolk at hitv dot ru
Reported By: bolk at hitv dot ru
Status: Open
Type: Bug
Package: Bug System
Operating System: Linux RedHat9
PHP Version: 5.0.3
New Comment:
Oops... Please trade places 'actual' and 'expected' results.
Previous Comments:
------------------------------------------------------------------------
[2005-01-16 04:52:18] bolk at hitv dot ru
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 this bug report at http://pecl.php.net/bugs/bug.php?id=3216&edit=1