diff --git a/UPGRADING b/UPGRADING index 8bd2a3d9d681d..0585146329c76 100644 --- a/UPGRADING +++ b/UPGRADING @@ -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(). diff --git a/ext/posix/posix.c b/ext/posix/posix.c index da727cad15d18..bfb542bad7539 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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(); } diff --git a/ext/posix/tests/posix_eaccess.phpt b/ext/posix/tests/posix_eaccess.phpt index 4211e6ef13e72..ab47a1a0e8e36 100644 --- a/ext/posix/tests/posix_eaccess.phpt +++ b/ext/posix/tests/posix_eaccess.phpt @@ -17,4 +17,4 @@ try { ?> --EXPECT-- -posix_eaccess(): Argument #1 ($filename) must not be empty +posix_eaccess(): Argument #1 ($filename) cannot be empty