Download src/php/php-src/ext/intl/tests/bug61487.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug61487.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/tests/bug61487.phpt
-
curl -L -o bug61487.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug61487.phpt
571 Bytes
| --TEST-- | |
| grapheme() str[i]pos limits | |
| --EXTENSIONS-- | |
| intl | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 8) die('skip 64-bit only'); | |
| --FILE-- | |
| try { | |
| grapheme_stripos(1,1,2147483648); | |
| } catch (ValueError $exception) { | |
| echo $exception->getMessage() . "\n"; | |
| } | |
| try { | |
| grapheme_strpos(1,1,2147483648); | |
| } catch (ValueError $exception) { | |
| echo $exception->getMessage() . "\n"; | |
| } | |
| --EXPECT-- | |
| grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) | |
| grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) | |