$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) {
var_dump(is_writable($path), $exp);
echo "failed.\n";
}
- delete_file($path);
+ delete_dir($path);
}
?>
$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) {
var_dump(is_readable($path), $exp);
echo "failed.\n";
}
- delete_file($path);
+ delete_dir($path);
}
?>
$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) {
var_dump(is_readable($path), $exp);
echo "failed.\n";
}
- delete_file($path);
+ delete_dir($path);
}
?>