Skip to content

Commit

Permalink
Fix "non well formed numeric value encountered" notices
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 2, 2017
1 parent e89bb9b commit 7f235ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pclzip.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,9 @@ function privOptionDefaultThreshold(&$p_options)
// ----- Get 'memory_limit' configuration value
$v_memory_limit = ini_get('memory_limit');
$v_memory_limit = trim($v_memory_limit);
$last = strtolower(substr($v_memory_limit, -1));
$last = substr($v_memory_limit, -1);
$v_memory_limit = rtrim($v_memory_limit, $last);
$last = strtolower($last);

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

0 comments on commit 7f235ff

Please sign in to comment.