1--TEST--
2Test posix_getgrnam() function : basic functionality
3--SKIPIF--
4<?php
5    if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
6    if (!posix_getgroups()) die('skip - groups unavailable (ci)');
7?>
8--FILE--
9<?php
10  $groupid = posix_getgroups()[0];
11  $group = posix_getgrgid($groupid);
12  $groupinfo = posix_getgrnam($group["name"]);
13  var_dump($groupinfo);
14  $groupinfo = posix_getgrnam("");
15  var_dump($groupinfo);
16?>
17--EXPECTF--
18array(4) {
19  ["name"]=>
20  string(%d) "%s"
21  ["passwd"]=>
22  string(1) "%s"
23  ["members"]=>
24%a
25  ["gid"]=>
26  int(%d)
27}
28bool(false)
29