1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

increase the odbc limit (64k is too low, the theme data itself is >64k)

git-svn-id: file:///svn/phpbb/trunk@8038 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-08-16 15:38:13 +00:00
parent 0a7abb6b37
commit 521dfdbb05
3 changed files with 27 additions and 3 deletions

View File

@@ -109,9 +109,10 @@ if (!empty($mem_limit))
{
$unit = strtolower(substr($mem_limit, -1, 1));
$mem_limit = (int) $mem_limit;
if ($unit == 'k')
{
$mem_limit = floor($mem_limit/1024);
$mem_limit = floor($mem_limit / 1024);
}
else if ($unit == 'g')
{
@@ -119,7 +120,7 @@ if (!empty($mem_limit))
}
else if (is_numeric($unit))
{
$mem_limit = floor($mem_limit/1048576);
$mem_limit = floor((int) ($mem_limit . $unit) / 1048576);
}
$mem_limit = max(128, $mem_limit) . 'M';
}