#22123 [Opn->Csd]: gzdecode() in zlib extension

From: Date: Mon, 09 Oct 2006 09:40:59 +0000
Subject: #22123 [Opn->Csd]: gzdecode() in zlib extension
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103282@lists.php.net to get a copy of this message
ID: 22123 Updated by: mike@php.net Reported By: mario17 at web dot de -Status: Open +Status: Closed Bug Type: Feature/Change Request PHP Version: 5CVS-2003-02-08 (dev) New Comment: Implemented for PHP-6. Previous Comments: ------------------------------------------------------------------------ [2003-02-08 11:04:02] mario17 at web dot de Hi everybody, The zlib extension allows to compress data in memory using the gzencode() function for gzip-like output format. There are other compression formats supported as well, and currently there are two functions to reverse compression: gzdeflate() <--> gzinflate() gzcompress() <--> gzuncompress() gzencode() <--> ??? So the reverse "gzdecode" is missing, However the gzip-format is the most heavily used one. (the two decompression methods didn't work for me with gzencoded data) The only solution here is to write the gzip-data string to a newly opened temporary file and reopen it using gzopen()... But I think there should be a in-memory decompression of those gzip-data streams as well (as using the file io ones is much slower of course). I don't know if there is such a function in the libz.so, but PHP should have one nevertheless. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22123&edit=1

« previous php.bugs (#103282) next »