xref: /PHP-8.3/ext/posix/tests/posix_eaccess.phpt (revision 717f460f)
1--TEST--
2posix_eaccess() with bogus paths
3--EXTENSIONS--
4posix
5--SKIPIF--
6<?php
7if (!function_exists("posix_eaccess")) die("skip only platforms with posix_eaccess");
8?>
9--FILE--
10<?php
11
12try {
13    posix_eaccess(str_repeat('bogus path', 1042));
14} catch (ValueError $e) {
15    echo $e->getMessage() . PHP_EOL;
16}
17
18?>
19--EXPECT--
20posix_eaccess(): Argument #1 ($filename) cannot be empty
21