xref: /PHP-8.0/ext/standard/tests/file/mkdir-004.phpt (revision c5401854)
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
14var_dump(mkdir("/testdir/subdir", 0777, true));
15var_dump(rmdir("/testdir/subdir"));
16var_dump(rmdir("/testdir"));
17
18echo "Done\n";
19?>
20--EXPECT--
21bool(true)
22bool(true)
23bool(true)
24Done
25