Skip to content

Commit 2152462

Browse files
authored
Merge pull request #91 from zozoh94/patch-1
Fix non well formed numeric value error with PHP 7
2 parents 2548e5c + b775854 commit 2152462

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Handler/UploadHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ function get_config_bytes($val) {
339339
$last = strtolower($val[strlen($val)-1]);
340340
switch($last) {
341341
case 'g':
342-
$val *= 1024;
342+
$val = (int)$val*1024;
343343
case 'm':
344-
$val *= 1024;
344+
$val = (int)$val*1024;
345345
case 'k':
346-
$val *= 1024;
346+
$val = (int)$val*1024;
347347
}
348348
return $this->fix_integer_overflow($val);
349349
}

0 commit comments

Comments
 (0)