TickTackk
Well-known member
Unless I'm mistaken wouldn't the
Edit: Switching it with
seems to have fixed it.
setMemoryLimit
just return true and not actually update memory_limit
if trying to update value to -1
PHP:
$existingLimit = self::getMemoryLimit();
if ($existingLimit < 0)
{
return true;
}
$limit = intval($limit);
if ($limit > $existingLimit && $existingLimit)
{
if (@ini_set('memory_limit', $limit) === false)
{
return false;
}
self::$memoryLimit = $limit;
}
return true;
Edit: Switching it with
PHP:
$existingLimit = self::getMemoryLimit();
if ($existingLimit < 0)
{
return true;
}
$limit = intval($limit);
if ($limit > $existingLimit && $existingLimit || $limit === -1)
{
if (@ini_set('memory_limit', $limit) === false)
{
return false;
}
self::$memoryLimit = $limit;
}
return true;
seems to have fixed it.
Last edited: