xref: /PHP-5.3/ext/standard/tests/file/bug43137.phpt (revision f552f916)
1--TEST--
2Bug #43137 (rmdir() and rename() do not clear statcache)
3--FILE--
4<?php
5	$toname = "TO_" . md5(microtime());
6	$dirname = "FROM_" . md5(microtime());
7
8	mkdir($dirname);
9	var_dump(is_dir($dirname)); // Expected: true
10	rename($dirname, $toname);
11	var_dump(is_dir($dirname)); // Expected: false
12	var_dump(is_dir($toname)); // Expected: true
13	rmdir($toname);
14	var_dump(is_dir($toname)); // Expected: false
15?>
16--EXPECT--
17bool(true)
18bool(false)
19bool(true)
20bool(false)
21