Skip to content

Commit a196c3a

Browse files
committed
Fix compatibility with PHP v7.1
1 parent 2d31d5c commit a196c3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pclzip.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,7 @@ public function privOptionDefaultThreshold(&$p_options)
17871787
$v_memory_limit = ini_get('memory_limit');
17881788
$v_memory_limit = trim($v_memory_limit);
17891789
$last = strtolower(substr($v_memory_limit, -1));
1790+
$v_memory_limit = preg_replace('/\s*[KkMmGg]$/', '', $v_memory_limit);
17901791

17911792
if ($last == 'g') {
17921793
//$v_memory_limit = $v_memory_limit*1024*1024*1024;

0 commit comments

Comments
 (0)