Skip to content

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

Closed
wants to merge 1 commit into from
Closed

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Jan 7, 2023

follow-up on GH-10238 but with the file descriptor flavor.

@@ -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 {}
Copy link
Member

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)

@devnexen devnexen force-pushed the posix_fpathconf branch 2 times, most recently from 2713814 to c73a327 Compare January 8, 2023 17:44
Copy link
Member

@Girgias Girgias left a 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.

follow-up on phpGH-10238 but with the file descriptor flavor.
@Girgias
Copy link
Member

Girgias commented Jan 12, 2023

Please don't forget to add this to UPGRADING while merging :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants