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 fucntions\n"; 10 11 $gid = posix_getgid(); 12 $groupinfo = posix_getgrgid($gid); 13 14 print_r($groupinfo); 15 16?> 17===DONE=== 18--EXPECTF-- 19Basic test of POSIX getgid and getgrid fucntions 20Array 21( 22 [name] => %s 23 [passwd] => %a 24 [members] => Array 25%a 26 27 [gid] => %d 28) 29===DONE=== 30 31