mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
21 lines
336 B
Plaintext
21 lines
336 B
Plaintext
|
--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.
|