|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: vodkaproof at gmail dot com
New email:
PHP Version: OS:


 [2007-08-06 06:23 UTC] vodkaproof at gmail dot com
$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.

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


Add a Patch

Pull Requests

Add a Pull Request


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: Thu Jun 13 08:01:30 2024 UTC