Re: gzuncompress() Not Working.
| From: | heavyccasey at gmail dot com | Date: | Wed, 07 Nov 2007 06:21:03 +0000 |
| Subject: | Re: gzuncompress() Not Working. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264161@lists.php.net to get a copy of this message | ||
Alright, I think I know the problem.
PHP's gzuncompress uses the Adler-32 checksum at the end of the zlib,
while Python uses CRC32.
Why must you follow the standards, PHP!?
Does anyone know of any workaround?
On Nov 6, 2007 7:03 AM, <heavyccasey@gmail.com> wrote:
> I left that empty. The decompressed string is about 224 KB, so it
> shouldn't throw an error. Thanks for the reply!
>
>
>
>
> On Nov 6, 2007 12:25 AM, Per Jessen <per@computer.org> wrote:
> > Casey wrote:
> >
> > > When I try gzuncompress() on the same data (I checked), it returns a
> > > "Data error". I also tried gzinflate() and many user-created gzdecode
> > > () functions, with no luck.
> >
> > Did you specify a correct length for gzuncompress() ?
> >
> > >From the manpage:
> >
> > The function will return an error if the uncompressed data is more than
> > the optional parameter length.
> >
> >
> > /Per Jessen, Zürich
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>