xref: /PHP-8.0/ext/standard/tests/file/mkdir-006.phpt (revision 26dfce7f)
1--TEST--
2recursive mkdir() with unclean paths
3--FILE--
4<?php
5chdir(__DIR__);
6$dirpath = "./tmp/foo//bar/logs";
7mkdir($dirpath, 0777, true);
8
9if (is_dir($dirpath)) {
10    echo "Ok.\n";
11} else {
12    echo "Failed.\n";
13}
14rmdir("./tmp/foo/bar/logs");
15rmdir("./tmp/foo/bar/");
16rmdir("./tmp/foo/");
17rmdir("./tmp/");
18?>
19--EXPECT--
20Ok.
21