Annotation of embedaddon/php/ext/standard/tests/file/bug24313.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>