Rev 1417 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1417 | Rev 1441 | ||
---|---|---|---|
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 !function_exists('php_uname'): |
|
- | 672 | case !is_string(php_uname('m')): |
|
671 | case !(is_string(php_uname('m')) && (php_uname('m') & "\xDF\xDF\xDF") == 'ARM'): |
673 | case (php_uname('m') & "\xDF\xDF\xDF") != 'ARM': |
672 | case defined('PHP_INT_SIZE') && PHP_INT_SIZE == 8: |
674 | case defined('PHP_INT_SIZE') && PHP_INT_SIZE == 8: |
673 | self::$use_reg_intval = true; |
675 | self::$use_reg_intval = true; |
674 | break; |
676 | break; |
675 | case is_string(php_uname('m')) && (php_uname('m') & "\xDF\xDF\xDF") == 'ARM': |
677 | case (php_uname('m') & "\xDF\xDF\xDF") == 'ARM': |
676 | switch (true) { |
678 | switch (true) { |
677 | /* PHP 7.0.0 introduced a bug that affected 32-bit ARM processors: |
679 | /* PHP 7.0.0 introduced a bug that affected 32-bit ARM processors: |
678 | 680 | ||
679 | https://github.com/php/php-src/commit/716da71446ebbd40fa6cf2cea8a4b70f504cc3cd |
681 | https://github.com/php/php-src/commit/716da71446ebbd40fa6cf2cea8a4b70f504cc3cd |
680 | 682 |