#42217 [Opn]: gzcompress/gzcompress fails with size > 65535 (6mb)
| From: | vodkaproof at gmail dot com | Date: | Mon, 06 Aug 2007 06:28:41 +0000 |
| Subject: | #42217 [Opn]: gzcompress/gzcompress fails with size > 65535 (6mb) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115786@lists.php.net to get a copy of this message | ||
ID: 42217
User updated by: vodkaproof at gmail dot com
Reported By: vodkaproof at gmail dot com
Status: Open
Bug Type: Zlib Related
Operating System: debian
PHP Version: 4.4.7
New Comment:
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.
*Edit* - Incase you say increase memory_limit, it's set at 100mb
Previous Comments:
------------------------------------------------------------------------
[2007-08-06 06:23:27] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42217&edit=1