Skip to content

Commit 717f460

Browse files
authored
ext/posix: posix_eaccess little update and forgotten UPGRADING entry. (php#10965)
1 parent efdbb47 commit 717f460

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ PHP 8.3 UPGRADE NOTES
142142
. Added posix_sysconf call to get runtime informations.
143143
. Added posix_pathconf call to get configuration value from a directory/file.
144144
. Added posix_fpathconf call to get configuration value from a file descriptor.
145+
. Added posix_eaccess call to check the effective user id's permission for a path.
145146

146147
- Random:
147148
. Added Randomizer::getBytesFromString().

ext/posix/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ PHP_FUNCTION(posix_eaccess)
729729

730730
path = expand_filepath(filename, NULL);
731731
if (!path) {
732-
zend_argument_value_error(1, "must not be empty");
732+
zend_argument_value_error(1, "cannot be empty");
733733
RETURN_THROWS();
734734
}
735735

ext/posix/tests/posix_eaccess.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ try {
1717

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

0 commit comments

Comments
 (0)