Bug #3216 [Opn->Bgs]: ZIP package reading bug

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

« previous php.pear.webmaster (#3734) next »