public static function compareIntegers($value, $setting_value)
    {
        $okay = false;

        $actual = self::getIntegerValue($value);
        $operator = self::getOperator($setting_value);
        $expected = self::getIntegerValue($setting_value);
        switch ($operator) {
            case '>':
                $okay = $actual > $expected;
                break;
            case '>=':
                $okay = $actual >= $expected;
                break;
            case '<':
                $okay = $actual < $expected;
                break;
            case '<=':
                $okay = $actual <= $expected;
                break;
            case '!=':
                $okay = $actual != $expected;
                break;
            case '=':
            default:
                $okay = $actual == $expected;
                break;
        }

        return $okay;
    }
public static function compareIntegers($value, $setting_value)
    {
        $okay = false;

        $actual = self::getIntegerValue($value);
        $operator = self::getOperator($setting_value);
        $expected = self::getIntegerValue($setting_value);
        switch ($operator) {
            case '>':
                $okay = $actual > $expected;
                break;
            case '>=':
                $okay = $actual >= $expected;
                break;
            case '<':
                $okay = $actual < $expected;
                break;
            case '<=':
                $okay = $actual <= $expected;
                break;
            case '!=':
                $okay = $actual != $expected;
                break;
            case '=':
            default:
                $okay = $actual == $expected;
                break;
        }

        return $okay;
    }
public static function compareIntegers ( $ value , $ setting_value ) { $ okay = false ; $ actual = self :: getIntegerValue ( $ value ) ; $ operator = self :: getOperator ( $ setting_value ) ; $ expected = self :: getIntegerValue ( $ setting_value ) ; switch ( $ operator ) { case '>' : $ okay = $ actual > $ expected ; break ; case '>=' : $ okay = $ actual >= $ expected ; break ; case '<' : $ okay = $ actual < $ expected ; break ; case '<=' : $ okay = $ actual <= $ expected ; break ; case '!=' : $ okay = $ actual != $ expected ; break ; case '=' : default : $ okay = $ actual == $ expected ; break ; } return $ okay ; }
Compares the given values according to the comparison operator the second
value might have and returns whether the evaluation is true.

@param string $value integer value that is set in php.ini (e.g. "8M")
@param string $setting_value comparison value as string (e.g. ">=8M")

@return bool true if comparison is okay; false otherwise.
Compares the given values according to the comparison operator the second value might have and returns whether the evaluation is true .