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: -
From: vincent dot lascaux at centraliens dot net Assigned:
Status: Open Package: Feature/Change Request
PHP Version: 5.0.4 OS:
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 23 07:02:14 2014 UTC