Download src/php/php-src/ext/intl/tests/bug59597_64.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug59597_64.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/tests/bug59597_64.phpt
-
curl -L -o bug59597_64.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug59597_64.phpt
556 Bytes
| --TEST-- | |
| Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer | |
| --EXTENSIONS-- | |
| intl | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 8) die("skip 64-bit only"); | |
| --FILE-- | |
| $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); | |
| $value = $formatter->parse('2147483647', \NumberFormatter::TYPE_INT32); | |
| var_dump($value); | |
| $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); | |
| $value = $formatter->parse('2147483650', \NumberFormatter::TYPE_INT64); | |
| var_dump($value); | |
| --EXPECT-- | |
| int(2147483647) | |
| int(2147483650) | |