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:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user