#42217 [Opn->Fbk]: gzcompress/gzcompress fails with size > 65535 (6mb)
| From: | jani@php.net | Date: | Thu, 17 Jul 2008 01:02:50 +0000 |
| Subject: | #42217 [Opn->Fbk]: gzcompress/gzcompress fails with size > 65535 (6mb) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126851@lists.php.net to get a copy of this message | ||
ID: 42217
Updated by: jani@php.net
Reported By: vodkaproof at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Zlib Related
Operating System: debian
PHP Version: 4.4.7
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
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