Re: gzuncompress() Not Working.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux