Skip to content

Commit d5f0362

Browse files
nielsdosdevnexen
authored andcommitted
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.
1 parent 4c9375e commit d5f0362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/posix/tests/posix_getgrgid_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Basic test of POSIX getgid and getgrid functions
1717
Array
1818
(
1919
[name] => %s
20-
[passwd] => %a
20+
[passwd] => %A
2121
[members] => Array
2222
%a
2323

ext/posix/tests/posix_getgrnam_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ array(4) {
2020
["name"]=>
2121
string(%d) "%s"
2222
["passwd"]=>
23-
string(1) "%s"
23+
string(%d) "%S"
2424
["members"]=>
2525
%a
2626
["gid"]=>

0 commit comments

Comments
 (0)