Horde_Test::_checkMemoryLimit PHP Method

_checkMemoryLimit() protected method

Additional check for 'session.gc_divisor'.
protected _checkMemoryLimit ( ) : boolean
return boolean Returns true if error string should be displayed.
    protected function _checkMemoryLimit()
    {
        $memlimit = trim(ini_get('memory_limit'));
        switch (strtolower(substr($memlimit, -1))) {
            case 'g':
                $memlimit *= 1024;
                // Fall-through
            // Fall-through
            case 'm':
                $memlimit *= 1024;
                // Fall-through
            // Fall-through
            case 'k':
                $memlimit *= 1024;
                // Fall-through
        }
        return $memlimit < 67108864;
    }