Download src/php/php-src/tests/lang/034.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/034.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/034.phpt
-
curl -L -o 034.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/034.phpt
467 Bytes
| --TEST-- | |
| Bug #12647 (Locale settings affecting float parsing) | |
| --INI-- | |
| precision=14 | |
| --SKIPIF-- | |
| # try to activate a german locale | |
| if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FALSE) { | |
| print "skip Can't find german locale"; | |
| } | |
| --FILE-- | |
| # activate the german locale | |
| setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1"); | |
| echo (float)"3.14", "\n"; | |
| --EXPECT-- | |
| 3.14 | |