xref: /PHP-7.3/ext/standard/tests/file/mkdir-006.phpt (revision 4f4e724b)
1--TEST--
2recursive mkdir() with unclean paths
3--FILE--
4<?php
5chdir(dirname(__FILE__));
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