Download src/php/php-src/ext/mbstring/tests/bug46806.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug46806.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mbstring/tests/bug46806.phpt
-
curl -L -o bug46806.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug46806.phpt
293 Bytes
| --TEST-- | |
| Bug #46806 (mb_strimwidth cutting too early) | |
| --CREDITS-- | |
| Sebastian Schürmann | |
| sebs@php.net | |
| Testfest 2009 | |
| --EXTENSIONS-- | |
| mbstring | |
| --FILE-- | |
| echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n"; | |
| echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8'); | |
| --EXPECT-- | |
| he... | |
| hello | |