php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42805 gzuncompress data error
Submitted: 2007-10-01 00:54 UTC Modified: 2007-10-09 01:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:0 (0.0%)
From: dwlnetnl at users dot sourceforge dot net Assigned:
Status: No Feedback Package: Zlib related
PHP Version: 5.2.4 OS: Mac OS X 10.4.10 Intel
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dwlnetnl at users dot sourceforge dot net
New email:
PHP Version: OS:

 

 [2007-10-01 00:54 UTC] dwlnetnl at users dot sourceforge dot net
Description:
------------
When I uncompress some gzcompress()'d data I get an data error. It's Qcodo form data.

Reproduce code:
---------------
$gz_base64 = 'eNrtW1tvG7kVzk8RBuhLgbXusj3uFpBlp3Fry3KkJEBfDGqGlhhTpJakfNnA/e09vAw5M5a0MrraBNt5CRyeQ/Lj4bl8pDjX8XEcnSE5n3Ik0ihuNeNvMm724ujdX99RqQYUSTlECyyjk+v4KI5uLolUp/wpinsto9oxqlKJgZRGOzqR8WEcUdCbgh78DwaN3mUdT5HE7whTH/kjqJK4qRVa2SCXaIrpey4+4l9WROBUd9dT/EXWiKyJXGvreFOfT4wBYKMEgAsjdU0fPv16ofBirJ4p1svSExh4oVWrfvMdYJJTlNwPOOUiOhnqkQ69gIsUiy0iN42MwahDrsZYRWu0vpBUzd0Aa0yaa59S9p4zMCWFNU3jxonfLye5UIiSxMv8ErTMbaUZ7ijf6foBC0oY9t06+W5j8it2vY7zvcZKkHvMV8p3K4g/sbQ0ag6MwHmjeQ/4gMlsrlxrM2v15nnxc0DrGFOcKMLZFU8zE48Jm1l7BxP/Ez2gcSLIUhnv1Oa6TQBA3TnpwVffHtxD9oVAz9EJipvt+BsB/Nc6WLyjRLF1k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ndgHJZA/lUzx39BqBmoUzplHXOFFhZL9k5uzfJBD+pcmKa4AXMq1yAtnxM9VeK20gwMQ45wI/nVzZCaRpynbftmeDLCRIz7Ctd2M8PXJBfwQER7VMye53rwm3NZywUSTbpOaDgqzrbSefTspSDgpbGtFGrW9Ay9AiWVVYLKfFCasV/c4bf6+qUKbR9Hv2kk85HLIESbJgz6F7yx9/QbR2GbKXVPiCWUnwGxTYJ0eQWoa9Kc0pXhJHFarFVBT0FlR/mBtO6WZpdNd8qXfr+BPxwWNHCH4sWDisymJHBZkUGvxcZdIl+V9pT+IVi74wo7B8wHutj/zeEp1kRnorw/EGEp5MnPNTEWcV4KsZTMZ69MZ5WxXgqxrOB8fg7no82lirKU1GeivL8zpSnm6c8wgZaxXkqzlNxnr1xnnbFeSrOs57ztD2yixmD6AgA9BO/cnUrKQdIa5RDmGp41hkLT8lDfELO0DpjhdTKPPluZQu40e3mQbh2w5IHGkLmbjEFjNULFF8AR2gF7xcA/Sj8/i3iTNaN3NOc7JfSKO41i29zLLvSCQa24m9kMatJkfwc1f+TPlKGFaN1uSQp4bfygdUhYbD7+uPjYx3KHexUnSzAl6VWYQyL22bnYEbuotqjzlE/R81OVJubJGb/RhT+GFEMC65pRAcHB1H979EWdraOjkLEyCViG8vqfqjbj/USvmINFWuoWMP/xBq6fzrW0KhYwx/xWiY72xaKd3b8Xr/G3K6f8vQZilk2V7tbVhjMcXKvfbjoW6VygCidPC+zejjkrPQ0yt3P+LoPpKDTaIcriLKBylSoHQI+oasUpxuYUy/7Bs5+T/RLwlNuviYKvu2+NOKzGRZ5ke+E9TurvKSdSZZcFgT+u6XE2matLP9Nk5atXc5WbheuuUYCPxC+kjqvY6nsZ1Z6K8yIwQNcynSj6yFHyD7R7EE2qetnzbLuGdWYKEuaXvOqpb6Nu00FutPsSheMA7WkB8v5MtrGB46zMjMEOpdLdfr7jZf/AluLSsY='

$gz = base64_decode($gz_base64);
echo gzuncompress($gz);

Expected result:
----------------
O:9:"Dashboard":21:{s:16:"

Actual result:
--------------
PHP Warning: gzuncompress(): data error

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-01 10:47 UTC] jani@php.net
Your example script works just fine for me. 
Exactly what PHP version are you using? And with what zlib version do you link PHP with?
 [2007-10-09 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-01-30 18:06 UTC] legolas558 at users dot sourceforge dot net
Same problem here, with PHP5.

Zlib compiled version: 1.2.1.1
Zilb linked version: 1.2.3

On my local host I have both versions 1.2.3 and it works fine
 [2008-02-13 16:46 UTC] ugtour at gmail dot com
bug, please fix it
 [2008-02-13 16:55 UTC] ugtour at gmail dot com
never mind its working fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC