Download src/php/php-src/ext/posix/tests/posix_getgroups_basic.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/posix/tests/posix_getgroups_basic.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/posix/tests/posix_getgroups_basic.phpt
-
curl -L -o posix_getgroups_basic.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/posix/tests/posix_getgroups_basic.phpt
526 Bytes
| --TEST-- | |
| Test posix_getgroups() function : basic functionality | |
| --EXTENSIONS-- | |
| posix | |
| --SKIPIF-- | |
| if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") { | |
| die("flaky Occasionally segfaults on macOS for unknown reasons"); | |
| } | |
| --FILE-- | |
| echo "Basic test of POSIX getgroups\n"; | |
| $groups = posix_getgroups(); | |
| if (!is_array($groups)) { | |
| echo "TEST FAILED: ", posix_strerror(posix_get_last_error()), "\n"; | |
| } else { | |
| echo "TEST PASSED\n"; | |
| } | |
| --EXPECT-- | |
| Basic test of POSIX getgroups | |
| TEST PASSED | |