Download src/php/php-src/ext/gettext/tests/dcgettext_lcall.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/dcgettext_lcall.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gettext/tests/dcgettext_lcall.phpt
-
curl -L -o dcgettext_lcall.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/dcgettext_lcall.phpt
446 Bytes
| --TEST-- | |
| dcgettext with LC_ALL is undefined behavior. | |
| --EXTENSIONS-- | |
| gettext | |
| --FILE-- | |
| try { | |
| dcgettext('dngettextTest', 'item', LC_ALL); | |
| } catch (ValueError $e) { | |
| echo $e->getMessage() . PHP_EOL; | |
| } | |
| try { | |
| dcngettext('dngettextTest', 'item', 'item2', 1, LC_ALL); | |
| } catch (ValueError $e) { | |
| echo $e->getMessage(); | |
| } | |
| --EXPECTF-- | |
| dcgettext(): Argument #3 ($category) cannot be LC_ALL | |
| dcngettext(): Argument #5 ($category) cannot be LC_ALL | |