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,  <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
> >
> >
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to