Return to mkdir-005.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: recursive mkdir() tests 3: --SKIPIF-- 4: <?php 5: chdir("/"); 6: if (!@mkdir("testtmpskipifdir")) { 7: die("skip for root only"); 8: } 9: rmdir("testtmpskipifdir"); 10: ?> 11: --FILE-- 12: <?php 13: 14: chdir("/"); 15: var_dump(mkdir("./testdir/subdir", 0777, true)); 16: var_dump(rmdir("./testdir/subdir")); 17: var_dump(rmdir("./testdir")); 18: 19: echo "Done\n"; 20: ?> 21: --EXPECTF-- 22: bool(true) 23: bool(true) 24: bool(true) 25: Done