Download src/php/php-src/ext/intl/tests/bug55562.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug55562.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/tests/bug55562.phpt
-
curl -L -o bug55562.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug55562.phpt
306 Bytes
| --TEST-- | |
| grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large | |
| --EXTENSIONS-- | |
| intl | |
| --FILE-- | |
| var_dump( | |
| grapheme_substr('FOK', 1, 20), // expected: OK | |
| grapheme_substr('한국어', 1, 20) //expected: 국어 | |
| ); | |
| --EXPECT-- | |
| string(2) "OK" | |
| string(6) "국어" | |