From 1159c2ca7844e30aa221d0bb1416b709c2dbe922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 15 May 2006 22:01:55 +0000 Subject: [PATCH] Increase magic contstant to avoid problems with compression of some specific data (bug #1477029). --- ChangeLog | 2 ++ export.php | 2 +- import.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f1c0e46a..a2107a653 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,8 @@ $Source$ themes/darkblue_orange/css/theme_right.css.php, themes/original/css/theme_right.css.php: Not so wide login form (RFE #1445541). + * import.php, export.php: Increase magic contstant to avoid problems with + compression of some specific data (bug #1477029). 2006-05-14 Michal Čihař * libraries/common.lib.php: Fix reading database list with MySQL wildcards diff --git a/export.php b/export.php index facdb11ea..ad96b989b 100644 --- a/export.php +++ b/export.php @@ -218,7 +218,7 @@ if ($onfly_compression) { } // Some memory is needed for compression, assume 1/3 - $memory_limit *= 2/3; + $memory_limit /= 8; } // Generate filename and mime type if needed diff --git a/import.php b/import.php index 31bcb157e..893af68e1 100644 --- a/import.php +++ b/import.php @@ -204,7 +204,7 @@ if (strtolower(substr($memory_limit, -1)) == 'm') { $memory_limit = (int)$memory_limit; } -$read_limit = $memory_limit / 4; // Just to be sure, there might be lot of memory needed for uncompression +$read_limit = $memory_limit / 8; // Just to be sure, there might be lot of memory needed for uncompression // handle filenames if (!empty($local_import_file) && !empty($cfg['UploadDir'])) {