Annotation of embedaddon/php/ext/standard/tests/file/bug43137.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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--
! 17: bool(true)
! 18: bool(false)
! 19: bool(true)
! 20: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>