|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
32 - 15 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 19:03:41 2023 UTC