class Environment

Methods

static bool
increaseMemoryLimit(string $newMemoryLimit)

Increase the PHP Memory Limit to the passed value if the current value is smaller

static bool
increaseMemoryLimitIfNeeded($memoryToKeepFree = '32M')

This function makes sure the passed percentage of memory is kept free. If the free memory for this process runs below this level the memory will be automatically increased

static bool
increaseTimeLimit(int $seconds)

Increase Time Limit of process if the current value is smaller

Details

at line 22
static bool increaseMemoryLimit(string $newMemoryLimit)

Increase the PHP Memory Limit to the passed value if the current value is smaller

Parameters

string $newMemoryLimit

New Limit as PHP Memory Limit string (e.g. '512M')

Return Value

bool

Returns true if the memory_limit has been changed

at line 54
static bool increaseMemoryLimitIfNeeded($memoryToKeepFree = '32M')

This function makes sure the passed percentage of memory is kept free. If the free memory for this process runs below this level the memory will be automatically increased

Parameters

$memoryToKeepFree

Return Value

bool

Returns true if the memory has been increased

at line 42
static bool increaseTimeLimit(int $seconds)

Increase Time Limit of process if the current value is smaller

Parameters

int $seconds

Return Value

bool

Returns TRUE on success, or FALSE on failure.