From: [EMAIL PROTECTED] Operating system: PHP version: 5CVS-2003-02-08 (dev) PHP Bug Type: Feature/Change Request Bug description: gzdecode() in zlib extension
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 bug report at http://bugs.php.net/?id=22123&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22123&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22123&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22123&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22123&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22123&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22123&r=support Expected behavior: http://bugs.php.net/fix.php?id=22123&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22123&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22123&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22123&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22123&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22123&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22123&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22123&r=gnused