Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Commit

Permalink
Fix inside pclzip
Browse files Browse the repository at this point in the history
To avoid notice like e.g.:
» A non well formed numeric value encountered in
~/upload/modules/lib_lepton/pclzip/pclzip.lib.php on line 1886
  • Loading branch information
aldus committed Feb 25, 2017
1 parent a7353a9 commit e583d11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upload/modules/lib_lepton/pclzip/pclzip.lib.php
Expand Up @@ -1877,7 +1877,9 @@ function privOptionDefaultThreshold(&$p_options)
$v_memory_limit = ini_get('memory_limit');
$v_memory_limit = trim($v_memory_limit);
$last = strtolower(substr($v_memory_limit, -1));


$v_memory_limit = intval($v_memory_limit);

if($last == 'g')
//$v_memory_limit = $v_memory_limit*1024*1024*1024;
$v_memory_limit = $v_memory_limit*1073741824;
Expand Down

0 comments on commit e583d11

Please sign in to comment.