1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

Do not limit unlimited memory, fix number conversion warning

This commit is contained in:
Michael Graß
2021-08-19 12:33:07 +02:00
committed by Jakub Vrana
parent 3d2d39e7d0
commit 74e4bb9a6f
2 changed files with 5 additions and 5 deletions

View File

@@ -518,9 +518,9 @@ function tar_file($filename, $tmp_file) {
function ini_bytes($ini) {
$val = ini_get($ini);
switch (strtolower(substr($val, -1))) {
case 'g': $val *= 1024; // no break
case 'm': $val *= 1024; // no break
case 'k': $val *= 1024;
case 'g': $val = (int)$val * 1024; // no break
case 'm': $val = (int)$val * 1024; // no break
case 'k': $val = (int)$val * 1024;
}
return $val;
}