Increase magic contstant to avoid problems with compression of some specific data (bug #1477029).

This commit is contained in:
Michal Čihař
2006-05-15 22:01:55 +00:00
parent 5b8668f181
commit 1159c2ca78
3 changed files with 4 additions and 2 deletions

View File

@@ -15,6 +15,8 @@ $Source$
themes/darkblue_orange/css/theme_right.css.php, themes/darkblue_orange/css/theme_right.css.php,
themes/original/css/theme_right.css.php: Not so wide login form (RFE themes/original/css/theme_right.css.php: Not so wide login form (RFE
#1445541). #1445541).
* import.php, export.php: Increase magic contstant to avoid problems with
compression of some specific data (bug #1477029).
2006-05-14 Michal Čihař <michal@cihar.com> 2006-05-14 Michal Čihař <michal@cihar.com>
* libraries/common.lib.php: Fix reading database list with MySQL wildcards * libraries/common.lib.php: Fix reading database list with MySQL wildcards

View File

@@ -218,7 +218,7 @@ if ($onfly_compression) {
} }
// Some memory is needed for compression, assume 1/3 // Some memory is needed for compression, assume 1/3
$memory_limit *= 2/3; $memory_limit /= 8;
} }
// Generate filename and mime type if needed // Generate filename and mime type if needed

View File

@@ -204,7 +204,7 @@ if (strtolower(substr($memory_limit, -1)) == 'm') {
$memory_limit = (int)$memory_limit; $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 // handle filenames
if (!empty($local_import_file) && !empty($cfg['UploadDir'])) { if (!empty($local_import_file) && !empty($cfg['UploadDir'])) {