Download src/php/php-src/ext/gettext/tests/gh17400.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gh17400.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gettext/tests/gh17400.phpt
-
curl -L -o gh17400.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gh17400.phpt
436 Bytes
| --TEST-- | |
| GH-17400 bindtextdomain segfaults with invalid domain/domain with null bytes. | |
| --EXTENSIONS-- | |
| gettext | |
| --CREDITS-- | |
| YuanchengJiang | |
| --FILE-- | |
| $utf16_first_le = pack("H*", "00d800dc"); | |
| $utf16le_char_bad = pack("H*", "00dc00dc"); | |
| try { | |
| bindtextdomain($utf16le_char_bad,$utf16_first_le); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage(); | |
| } | |
| --EXPECT-- | |
| bindtextdomain(): Argument #1 ($domain) must not contain any null bytes | |