1--TEST--
2Test posix_getgrgid() function : basic functionality
3--SKIPIF--
4<?php
5    if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
6?>
7--FILE--
8<?php
9  echo "Basic test of POSIX getgid and getgrid functions\n";
10
11  $gid = posix_getgid();
12  $groupinfo = posix_getgrgid($gid);
13
14  print_r($groupinfo);
15
16?>
17--EXPECTF--
18Basic test of POSIX getgid and getgrid functions
19Array
20(
21    [name] => %s
22    [passwd] => %a
23    [members] => Array
24%a
25
26    [gid] => %d
27)
28