1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/posix/tests/posix_getgrgid_basic.phpt
Niels Dossche d5f0362e59 Fix GH-10202: posix_getgr(gid|nam)_basic.phpt fail
The issue was that passwd was empty for the issue reporter, but the test
expected passwd to be non-empty. An empty passwd can occur if there is
no (encrypted) group password set up.
2023-01-02 16:54:47 +00:00

26 lines
400 B
PHP

--TEST--
Test posix_getgrgid() function : basic functionality
--EXTENSIONS--
posix
--FILE--
<?php
echo "Basic test of POSIX getgid and getgrid functions\n";
$gid = posix_getgid();
$groupinfo = posix_getgrgid($gid);
print_r($groupinfo);
?>
--EXPECTF--
Basic test of POSIX getgid and getgrid functions
Array
(
[name] => %s
[passwd] => %A
[members] => Array
%a
[gid] => %d
)