Annotation of embedaddon/php/ext/standard/tests/file/mkdir-006.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: recursive mkdir() with unclean paths
                      3: --FILE--
                      4: <?php
                      5: chdir(dirname(__FILE__));
                      6: $dirpath = "./tmp/foo//bar/logs";
                      7: mkdir($dirpath, 0777, true);
                      8: 
                      9: if (is_dir($dirpath)) {
                     10:     echo "Ok.\n";
                     11: } else {
                     12:     echo "Failed.\n";
                     13: }
                     14: rmdir("./tmp/foo/bar/logs");
                     15: rmdir("./tmp/foo/bar/");
                     16: rmdir("./tmp/foo/");
                     17: rmdir("./tmp/");
                     18: ?>
                     19: --EXPECT--
                     20: Ok.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>