protected static function setMemoryLimit($minimumMemoryLimit)
    {
        // in Megabytes
        $currentValue = self::getMemoryLimitValue();
        if ($currentValue === false
            || ($currentValue < $minimumMemoryLimit && @ini_set('memory_limit', $minimumMemoryLimit . 'M'))
        ) {
            return true;
        }
        return false;
    }
protected static function setMemoryLimit($minimumMemoryLimit)
    {
        // in Megabytes
        $currentValue = self::getMemoryLimitValue();
        if ($currentValue === false
            || ($currentValue < $minimumMemoryLimit && @ini_set('memory_limit', $minimumMemoryLimit . 'M'))
        ) {
            return true;
        }
        return false;
    }
protected static function setMemoryLimit ( $ minimumMemoryLimit ) { // in Megabytes $ currentValue = self :: getMemoryLimitValue ( ) ; if ( $ currentValue === false || ( $ currentValue < $ minimumMemoryLimit && @ ini_set ( 'memory_limit' , $ minimumMemoryLimit . 'M' ) ) ) { return true ; } return false ; }
Set PHP memory limit

Note: system settings may prevent scripts from overriding the master value

@param int $minimumMemoryLimit
@return bool  true if set; false otherwise
Set PHP memory limit