xref: /PHP-7.3/ext/standard/tests/file/mkdir-005.phpt (revision 782352c5)
1--TEST--
2recursive mkdir() tests
3--SKIPIF--
4<?php
5chdir("/");
6if (!@mkdir("testtmpskipifdir")) {
7	die("skip for root only");
8}
9rmdir("testtmpskipifdir");
10?>
11--FILE--
12<?php
13
14chdir("/");
15var_dump(mkdir("./testdir/subdir", 0777, true));
16var_dump(rmdir("./testdir/subdir"));
17var_dump(rmdir("./testdir"));
18
19echo "Done\n";
20?>
21--EXPECT--
22bool(true)
23bool(true)
24bool(true)
25Done
26