xref: /PHP-8.0/ext/standard/tests/file/bug45181.phpt (revision 6e20eba4)
1--TEST--
2Bug #45181 (chdir() should clear relative entries in stat cache)
3--FILE--
4<?php
5mkdir("bug45181_x");
6var_dump(is_dir("bug45181_x"));
7chdir("bug45181_x");
8var_dump(is_dir("bug45181_x"));
9?>
10--CLEAN--
11<?php
12rmdir("bug45181_x");
13?>
14--EXPECT--
15bool(true)
16bool(false)
17