From 181ef026798b04526ea12923a1bd46fd5fda69c9 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Tue, 28 Mar 2023 22:23:32 +0100 Subject: [PATCH] ext/posix: posix_eaccess little update and forgotten UPGRADING entry. --- UPGRADING | 1 + ext/posix/posix.c | 2 +- ext/posix/tests/posix_eaccess.phpt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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