Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 925 invoked by uid 1010); 29 Jul 2005 12:25:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 910 invoked from network); 29 Jul 2005 12:25:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2005 12:25:10 -0000 X-Host-Fingerprint: 62.58.68.2 firewall.axit.nl Received: from ([62.58.68.2:9957] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 9F/A8-50784-5202AE24 for ; Fri, 29 Jul 2005 08:25:09 -0400 Message-ID: <9F.A8.50784.5202AE24@pb1.pair.com> To: internals@lists.php.net Date: Fri, 29 Jul 2005 14:25:03 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 62.58.68.2 Subject: zlib problem From: r.korving@xit.nl ("Ron Korving") Hi, Will there be a gzdecode() function in the future? I really need it, and the function provided by Aaron G. on http://nl2.php.net/manual/en/function.gzencode.php#44470 doesn't always seem to work ("data error" warning on a newly gzipped file). I tried to go through the ext/zlib code, trying to figure out how everything works, so I could create a function in php based on readgzfile (for strings), but I just don't get how the wrapper works. I also tried making my own wrapper, like this: readgzfile("str://andsomegzippeddatahere"); But the gz-functions don't accept user-space wrappers. So, my questions are: - is it possible to make the zlib functions use my wrapper anyway? - will there be a gzdecode() in the future? - how could i mimic the behavior of readgzfile() to work with strings (in php-code)? Thanks, Ron