Return to mkdir-004.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: var_dump(mkdir("/testdir/subdir", 0777, true)); 15: var_dump(rmdir("/testdir/subdir")); 16: var_dump(rmdir("/testdir")); 17: 18: echo "Done\n"; 19: ?> 20: --EXPECTF-- 21: bool(true) 22: bool(true) 23: bool(true) 24: Done