-
Notifications
You must be signed in to change notification settings - Fork 7.9k
posix_getgr(gid|nam)_basic.phpt fail #10202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are three test failures in your report:
The first one was reported before and is fixed by the commit referenced in #10133 AFAICT. For the other two I used the following patch to fix the issues you're encountering: diff --git a/ext/posix/tests/posix_getgrgid_basic.phpt b/ext/posix/tests/posix_getgrgid_basic.phpt
index 6b0daa5e94..392e81d491 100644
--- a/ext/posix/tests/posix_getgrgid_basic.phpt
+++ b/ext/posix/tests/posix_getgrgid_basic.phpt
@@ -17,7 +17,7 @@
Array
(
[name] => %s
- [passwd] => %a
+ [passwd] => %A
[members] => Array
%a
diff --git a/ext/posix/tests/posix_getgrnam_basic.phpt b/ext/posix/tests/posix_getgrnam_basic.phpt
index 5203d1ea0f..acf8f4473e 100644
--- a/ext/posix/tests/posix_getgrnam_basic.phpt
+++ b/ext/posix/tests/posix_getgrnam_basic.phpt
@@ -20,7 +20,7 @@
["name"]=>
string(%d) "%s"
["passwd"]=>
- string(1) "%s"
+ string(%d) "%S"
["members"]=>
%a
["gid"]=> You can apply this patch on top of the 8.2 branch using the |
It worked :-) |
So |
Yes and yes. |
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.
Description
php_test_results_20230101_2044.txt
PHP Version
PHP 8.2.1RC1
Operating System
Linux 5.15.85 (CRUX)
The text was updated successfully, but these errors were encountered: