Download src/php/php-src/ext/iconv/tests/bug37773.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug37773.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug37773.phpt
-
curl -L -o bug37773.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug37773.phpt
332 Bytes
| --TEST-- | |
| Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1") | |
| --EXTENSIONS-- | |
| iconv | |
| --SKIPIF-- | |
| $test = @iconv_strpos("abbttt","ttt",0,"UTF-8"); | |
| if ($test === false) { | |
| die("skip UTF-8 is not supported?"); | |
| } | |
| --FILE-- | |
| var_dump(iconv_substr('x', 0, 1, 'UTF-8')); | |
| --EXPECT-- | |
| string(1) "x" | |