mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
26 lines
526 B
PHP
26 lines
526 B
PHP
--TEST--
|
|
Test posix_getgroups() function : basic functionality
|
|
--EXTENSIONS--
|
|
posix
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("GITHUB_ACTIONS") && PHP_OS_FAMILY === "Darwin") {
|
|
die("flaky Occasionally segfaults on macOS for unknown reasons");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
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
|