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