[-] INSTALLER : Fix bug #PSCFV-8605 first part, do not affect memeory limit when upgrading if set to -1
This commit is contained in:
@@ -35,7 +35,7 @@ $engineType = 'ENGINE_TYPE';
|
|||||||
$memory_limit = ini_get('memory_limit');
|
$memory_limit = ini_get('memory_limit');
|
||||||
if (substr($memory_limit,-1) != 'G'
|
if (substr($memory_limit,-1) != 'G'
|
||||||
AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0, -1) < 128)
|
AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0, -1) < 128)
|
||||||
OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072))
|
OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072) AND $memory_limit > 0)
|
||||||
)
|
)
|
||||||
@ini_set('memory_limit','128M');
|
@ini_set('memory_limit','128M');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user