Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-07-29 14:04:46 +02:00
commit 108b71c3f6
2 changed files with 3 additions and 3 deletions

View File

@ -34,6 +34,7 @@ phpMyAdmin - ChangeLog
- issue #12414 Fixed rendering of Original theme
- issue #12413 Fixed deleting users in non English locales
- issue #12416 Fixed replication status output in Databases listing
- issue #12303 Avoid typecasting to float when not needed
4.6.3 (2016-06-23)
- issue #12249 Fixed cookie path on Windows

View File

@ -88,7 +88,7 @@ class Util
$pow = gmp_strval(gmp_pow($base, $exp));
break;
case 'pow' :
$base = (float) $base;
$base = $base;
$exp = (int) $exp;
$pow = pow($base, $exp);
break;
@ -1453,8 +1453,7 @@ class Util
$unit = $byteUnits[0];
for ($d = 6, $ex = 15; $d >= 1; $d--, $ex-=3) {
// cast to float to avoid overflow
$unitSize = (float) $li * self::pow(10, $ex);
$unitSize = $li * self::pow(10, $ex);
if (isset($byteUnits[$d]) && $value >= $unitSize) {
// use 1024.0 to avoid integer overflow on 64-bit machines
$value = round($value / (self::pow(1024, $d) / $dh)) /$dh;