public static function support64bit() { $int = '9223372036854775807'; $int = intval($int); if ($int == 9223372036854775807) { /* 64bit */ return true; } elseif ($int == 2147483647) { /* 32bit */ return false; } else { return false; } }
public function match($build) { $currentVersion = preg_replace('/[^\\d]*(\\d+).(\\d+).*/i', '$1.$2', $build->version); return Utils::support64bit() && version_compare($currentVersion, '5.3', '=='); }