Return to mkdir-002.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: mkdir(dir, 0777) tests 3: --SKIPIF-- 4: <?php 5: if (substr(PHP_OS, 0, 3) == 'WIN') { 6: die('skip no symlinks on Windows'); 7: } 8: ?> 9: --FILE-- 10: <?php 11: 1.1.1.2 ! misho 12: var_dump(mkdir("mkdir-002", 0777)); ! 13: var_dump(mkdir("mkdir-002/subdir", 0777)); ! 14: var_dump(`ls -l mkdir-002`); ! 15: var_dump(rmdir("mkdir-002/subdir")); ! 16: var_dump(rmdir("mkdir-002")); 1.1 misho 17: 1.1.1.2 ! misho 18: var_dump(mkdir("./mkdir-002", 0777)); ! 19: var_dump(mkdir("./mkdir-002/subdir", 0777)); ! 20: var_dump(`ls -l ./mkdir-002`); ! 21: var_dump(rmdir("./mkdir-002/subdir")); ! 22: var_dump(rmdir("./mkdir-002")); 1.1 misho 23: 1.1.1.2 ! misho 24: var_dump(mkdir(dirname(__FILE__)."/mkdir-002", 0777)); ! 25: var_dump(mkdir(dirname(__FILE__)."/mkdir-002/subdir", 0777)); ! 26: $dirname = dirname(__FILE__)."/mkdir-002"; 1.1 misho 27: var_dump(`ls -l $dirname`); 1.1.1.2 ! misho 28: var_dump(rmdir(dirname(__FILE__)."/mkdir-002/subdir")); ! 29: var_dump(rmdir(dirname(__FILE__)."/mkdir-002")); 1.1 misho 30: 31: echo "Done\n"; 32: ?> 33: --EXPECTF-- 34: bool(true) 35: bool(true) 36: string(%d) "%s 37: d%s subdir 38: " 39: bool(true) 40: bool(true) 41: bool(true) 42: bool(true) 43: string(%d) "%s 44: d%s subdir 45: " 46: bool(true) 47: bool(true) 48: bool(true) 49: bool(true) 50: string(%d) "%s 51: d%s subdir 52: " 53: bool(true) 54: bool(true) 55: Done