mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
24 lines
458 B
PHP
24 lines
458 B
PHP
--TEST--
|
|
Test posix_getgroups() function : basic functionality
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
echo "Basic test of POSIX getgroups\n";
|
|
|
|
$groups = posix_getgroups();
|
|
|
|
if (!is_array($groups)) {
|
|
echo "TEST FAILED - array result expected\n";
|
|
} else {
|
|
echo "TEST PASSED\n";
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
Basic test of POSIX getgroups
|
|
TEST PASSED
|
|
===DONE===
|