php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56267 ZIP package reading bug
Submitted: 2005-01-16 04:52 UTC Modified: 2006-03-14 05:51 UTC
From: bolk at hitv dot ru Assigned: pajoye (profile)
Status: Closed Package: zip (PECL)
PHP Version: 5.0.3 OS: Linux RedHat9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bolk at hitv dot ru
New email:
PHP Version: OS:

 

 [2005-01-16 04:52 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-16 04:58 UTC] bolk at hitv dot ru
Oops... Please trade places 'actual' and 'expected' results.
 [2005-01-17 07:46 UTC] mike@php.net
Please report there:
http://pecl.php.net/bugs/report.php?package=zip

Thanks
 [2005-01-17 08:09 UTC] helgi at trance dot is
moved to zip package
 [2005-10-23 09:57 UTC] mike@php.net
Please try the latest package version and report back if you're still experiencing this issue.
 [2006-02-26 12:39 UTC] pierre dot php at gmail dot com
Please put the zip archive somewhere online and copy the link here.
 [2006-02-27 02:58 UTC] bolk at hitv dot ru
Go to this page:

http://slil.ru/22584986

and wait for 5 seconds
 [2006-02-27 11:24 UTC] pierre dot php at gmail dot com
If you like to have a preview of the next release, you can use the cvs version of the zip extension. It is available in the pecl cvs.

The fopen.php or extract.php examples does what you want.

The procedural API will be added this week with a new release.

Let me know if it fixes your problem.
 [2006-03-14 05:51 UTC] bolk at hitv dot ru
It works fine in new version of ZIP package.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC