Return to mkdir-006.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: recursive mkdir() with unclean paths 3: --FILE-- 4: <?php 5: chdir(dirname(__FILE__)); 6: $dirpath = "./tmp/foo//bar/logs"; 7: mkdir($dirpath, 0777, true); 8: 9: if (is_dir($dirpath)) { 10: echo "Ok.\n"; 11: } else { 12: echo "Failed.\n"; 13: } 14: rmdir("./tmp/foo/bar/logs"); 15: rmdir("./tmp/foo/bar/"); 16: rmdir("./tmp/foo/"); 17: rmdir("./tmp/"); 18: ?> 19: --EXPECT-- 20: Ok.