xref: /PHP-8.1/ext/standard/tests/file/bug24313.phpt (revision f8d79582)
1--TEST--
2Bug #24313 (file_exists() throws a warning on nonexistent files when is open_basedir enabled)
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) == 'WIN') {
6    die('skip "/dev" is not available');
7}
8?>
9--INI--
10open_basedir=/dev
11--FILE--
12<?php
13    var_dump(file_exists("/dev/bogus_file_no_such_thing"));
14?>
15--EXPECT--
16bool(false)
17