PhpBrew\Utils::support64bit PHP Method

support64bit() public static method

public static support64bit ( )
    public static function support64bit()
    {
        $int = '9223372036854775807';
        $int = intval($int);
        if ($int == 9223372036854775807) {
            /* 64bit */
            return true;
        } elseif ($int == 2147483647) {
            /* 32bit */
            return false;
        } else {
            return false;
        }
    }

Usage Example

 public function match($build)
 {
     $currentVersion = preg_replace('/[^\\d]*(\\d+).(\\d+).*/i', '$1.$2', $build->version);
     return Utils::support64bit() && version_compare($currentVersion, '5.3', '==');
 }
All Usage Examples Of PhpBrew\Utils::support64bit