1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00

fix ACLs tests, make it create dir where it has to, not file

This commit is contained in:
Anatol Belski
2015-01-05 19:19:24 +01:00
parent 4bb580adb1
commit 339139f876
3 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ echo "Testing directory:\n";
$path = __DIR__ . '/adir';
$i = 1;
foreach ($iteration as $perms => $exp) {
create_file($path, $perms);
create_dir($path, $perms);
clearstatcache(true, $path);
echo 'Iteration #' . $i++ . ': ';
if (is_writable($path) == $exp) {
@@ -46,7 +46,7 @@ foreach ($iteration as $perms => $exp) {
var_dump(is_writable($path), $exp);
echo "failed.\n";
}
delete_file($path);
delete_dir($path);
}
?>

View File

@@ -37,7 +37,7 @@ echo "Testing directory:\n";
$path = __DIR__ . '/adir';
$i = 1;
foreach ($iteration as $perms => $exp) {
create_file($path, $perms);
create_dir($path, $perms);
clearstatcache(true, $path);
echo 'Iteration #' . $i++ . ': ';
if (is_readable($path) == $exp) {
@@ -46,7 +46,7 @@ foreach ($iteration as $perms => $exp) {
var_dump(is_readable($path), $exp);
echo "failed.\n";
}
delete_file($path);
delete_dir($path);
}
?>

View File

@@ -39,7 +39,7 @@ echo "Testing directory with relative path:\n";
$path = 'adir';
$i = 1;
foreach ($iteration as $perms => $exp) {
create_file($path, $perms);
create_dir($path, $perms);
clearstatcache(true, $path);
echo 'Iteration #' . $i++ . ': ';
if (is_readable($path) == $exp) {
@@ -48,7 +48,7 @@ foreach ($iteration as $perms => $exp) {
var_dump(is_readable($path), $exp);
echo "failed.\n";
}
delete_file($path);
delete_dir($path);
}
?>