Skip to content

ext/posix: posix_eaccess little update and forgotten UPGRADING entry. #10965

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

Merged
merged 1 commit into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ PHP 8.3 UPGRADE NOTES
. Added posix_sysconf call to get runtime informations.
. Added posix_pathconf call to get configuration value from a directory/file.
. Added posix_fpathconf call to get configuration value from a file descriptor.
. Added posix_eaccess call to check the effective user id's permission for a path.

- Random:
. Added Randomizer::getBytesFromString().
Expand Down
2 changes: 1 addition & 1 deletion ext/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ PHP_FUNCTION(posix_eaccess)

path = expand_filepath(filename, NULL);
if (!path) {
zend_argument_value_error(1, "must not be empty");
zend_argument_value_error(1, "cannot be empty");
RETURN_THROWS();
}

Expand Down
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_eaccess.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ try {

?>
--EXPECT--
posix_eaccess(): Argument #1 ($filename) must not be empty
posix_eaccess(): Argument #1 ($filename) cannot be empty