Subversion Repositories oidplus

Rev

Rev 1261 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1261 Rev 1417
Line 666... Line 666...
666
    {
666
    {
667
        if (!isset(self::$use_reg_intval)) {
667
        if (!isset(self::$use_reg_intval)) {
668
            switch (true) {
668
            switch (true) {
669
                // PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
669
                // PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
670
                case (PHP_OS & "\xDF\xDF\xDF") === 'WIN':
670
                case (PHP_OS & "\xDF\xDF\xDF") === 'WIN':
671
                case (php_uname('m') & "\xDF\xDF\xDF") != 'ARM':
671
                case !(is_string(php_uname('m')) && (php_uname('m') & "\xDF\xDF\xDF") == 'ARM'):
672
                case defined('PHP_INT_SIZE') && PHP_INT_SIZE == 8:
672
                case defined('PHP_INT_SIZE') && PHP_INT_SIZE == 8:
673
                    self::$use_reg_intval = true;
673
                    self::$use_reg_intval = true;
674
                    break;
674
                    break;
675
                case (php_uname('m') & "\xDF\xDF\xDF") == 'ARM':
675
                case is_string(php_uname('m')) && (php_uname('m') & "\xDF\xDF\xDF") == 'ARM':
676
                    switch (true) {
676
                    switch (true) {
677
                        /* PHP 7.0.0 introduced a bug that affected 32-bit ARM processors:
677
                        /* PHP 7.0.0 introduced a bug that affected 32-bit ARM processors:
678
 
678
 
679
                           https://github.com/php/php-src/commit/716da71446ebbd40fa6cf2cea8a4b70f504cc3cd
679
                           https://github.com/php/php-src/commit/716da71446ebbd40fa6cf2cea8a4b70f504cc3cd
680
 
680