php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42217 gzcompress/gzcompress fails with size > 65535 (6mb)
Submitted: 2007-08-06 06:23 UTC Modified: 2008-07-25 01:00 UTC
Votes:8
Avg. Score:4.4 ± 0.9
Reproduced:6 of 6 (100.0%)
Same Version:3 (50.0%)
Same OS:3 (50.0%)
From: vodkaproof at gmail dot com Assigned:
Status: No Feedback Package: Zlib related
PHP Version: 4.4.7 OS: debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vodkaproof at gmail dot com
New email:
PHP Version: OS:

 

 [2007-08-06 06:23 UTC] vodkaproof at gmail dot com
Description:
------------
$big_string = <string larger than 65535(6MB) in size>

$big_string = gzcompress ($big_string, 1);
$big_string = gzuncompress ($big_string);

print $big_string;

The resulting $big_string is cut off after 65535 bytes. 

Bug report was created but ignored.
http://bugs.php.net/bug.php?id=32306


I didn't know of this bug, now I have 200gb of corrupted mysql records. It will take weeks to recover.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-25 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC