mirror of
https://github.com/php/php-src.git
synced 2025-01-23 04:04:16 +08:00
26 lines
371 B
PHP
26 lines
371 B
PHP
--TEST--
|
|
recursive mkdir() tests
|
|
--SKIPIF--
|
|
<?php
|
|
chdir("/");
|
|
if (!@mkdir("testtmpskipifdir")) {
|
|
die("skip for root only");
|
|
}
|
|
rmdir("testtmpskipifdir");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
chdir("/");
|
|
var_dump(mkdir("./testdir/subdir", 0777, true));
|
|
var_dump(rmdir("./testdir/subdir"));
|
|
var_dump(rmdir("./testdir"));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
Done
|