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:
committed by
Jakub Vrana
parent
3d2d39e7d0
commit
74e4bb9a6f
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user