[php-src] PR #25589: Throw ValueError for empty filename in posix_access()

From: Date: Thu, 19 Nov 2026 13:21:08 +0000
Subject: [php-src] PR #25589: Throw ValueError for empty filename in posix_access()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40808@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25589 Author: lacatoire posix_access("") returns false with EIO, while posix_eaccess() and posix_pathconf() throw a ValueError for the same input. Check for an empty filename up front and throw the same ValueError. ### To reproduce ```php <?php var_dump(posix_access("")); var_dump(posix_get_last_error()); ``` php repro.php on PHP 8.4.26 Before: bool(false) then int(5) After: ValueError: posix_access(): Argument #1 ($filename) must not be empty

« previous php.git-pulls (#40808) next »