php-src/ext/standard/tests/file/mkdir-006.phpt

21 lines
336 B
Plaintext
Raw Normal View History

2006-10-19 12:07:07 +00:00
--TEST--
recursive mkdir() with unclean paths
--FILE--
<?php
chdir(dirname(__FILE__));
$dirpath = "./tmp/foo//bar/logs";
mkdir($dirpath, 0777, true);
if (is_dir($dirpath)) {
echo "Ok.\n";
} else {
echo "Failed.\n";
}
rmdir("./tmp/foo/bar/logs");
rmdir("./tmp/foo/bar/");
rmdir("./tmp/foo/");
rmdir("./tmp/");
?>
--EXPECT--
Ok.