mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
26 lines
400 B
PHP
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
|
|
)
|