php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33623 History buffer in gzinflate
Submitted: 2005-07-09 15:08 UTC Modified: 2016-12-30 23:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: vincent dot lascaux at centraliens dot net Assigned:
Status: Open Package: Zlib related
PHP Version: 5.0.4 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vincent dot lascaux at centraliens dot net
New email:
PHP Version: OS:

 

 [2005-07-09 15:08 UTC] vincent dot lascaux at centraliens dot net
Description:
------------
Hi,

I'm the autor of File_Archive (http://pear.php.net/package/File_Archive) and I'm adding a CAB file reader to it. This format can store deflated data, that can be uncompressed with gzinflate. Unfortunately, the data is cut blocks. The doc specifies that "Each block is flushed out of the compressor before the next block begins, so the last sub-block in each block will be marked as the ‘end’ of the stream. Any decoding trees are discarded after each block, with only the history buffer surviving from one block to the next."

My feature request is to be able to give to gzinflate the history buffer to use, and to retrieve from it the history buffer after the compression of the data.

A possible syntax would be
string gzinflate(string data[, int length[, array options]])
The array could store a reference to a history buffer that would be used (if not null) to uncompress the data and that would be updated after the data has been uncompressed.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:00 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Zlib related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 09:01:29 2024 UTC