xref: /PHP-5.4/ext/standard/tests/file/mkdir-003.phpt (revision 6b896fa5)
1--TEST--
2recursive mkdir() tests
3--FILE--
4<?php
5
6var_dump(mkdir("mkdir-003/subdir", 0777, true));
7var_dump(rmdir("mkdir-003/subdir"));
8var_dump(rmdir("mkdir-003"));
9
10var_dump(mkdir("./mkdir-003/subdir", 0777, true));
11var_dump(rmdir("./mkdir-003/subdir"));
12var_dump(rmdir("./mkdir-003"));
13
14var_dump(mkdir(dirname(__FILE__)."/mkdir-003/subdir", 0777, true));
15var_dump(rmdir(dirname(__FILE__)."/mkdir-003/subdir"));
16var_dump(rmdir(dirname(__FILE__)."/mkdir-003"));
17
18echo "Done\n";
19?>
20--EXPECTF--
21bool(true)
22bool(true)
23bool(true)
24bool(true)
25bool(true)
26bool(true)
27bool(true)
28bool(true)
29bool(true)
30Done
31