-
Notifications
You must be signed in to change notification settings - Fork 7.8k
posix adding posix_fpathconf. #10253
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
Conversation
78f6442
to
9ff64e6
Compare
ext/posix/posix.stub.php
Outdated
@@ -429,3 +429,4 @@ function posix_initgroups(string $username, int $group_id): bool {} | |||
function posix_sysconf(int $conf_id): int {} | |||
|
|||
function posix_pathconf(string $path, int $name): int|false {} | |||
function posix_fpathconf(int $fd, int $name): int|false {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the fact resource
is not a type you cannot use a proper type declaration here and will need to do it as a doc comment (a bit like how posix_isatty()
is marked)
2713814
to
c73a327
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being slow, let's make this a proper type error.
c73a327
to
33f4725
Compare
follow-up on phpGH-10238 but with the file descriptor flavor.
33f4725
to
1ea6a5c
Compare
Please don't forget to add this to UPGRADING while merging :) |
follow-up on GH-10238 but with the file descriptor flavor.