Skip to content

Commit 4756207

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: fix ACLs tests, make it create dir where it has to, not file
2 parents 480044a + 339139f commit 4756207

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ext/standard/tests/file/windows_acls/bug44859.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo "Testing directory:\n";
3737
$path = __DIR__ . '/adir';
3838
$i = 1;
3939
foreach ($iteration as $perms => $exp) {
40-
create_file($path, $perms);
40+
create_dir($path, $perms);
4141
clearstatcache(true, $path);
4242
echo 'Iteration #' . $i++ . ': ';
4343
if (is_writable($path) == $exp) {
@@ -46,7 +46,7 @@ foreach ($iteration as $perms => $exp) {
4646
var_dump(is_writable($path), $exp);
4747
echo "failed.\n";
4848
}
49-
delete_file($path);
49+
delete_dir($path);
5050
}
5151

5252
?>

ext/standard/tests/file/windows_acls/bug44859_2.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo "Testing directory:\n";
3737
$path = __DIR__ . '/adir';
3838
$i = 1;
3939
foreach ($iteration as $perms => $exp) {
40-
create_file($path, $perms);
40+
create_dir($path, $perms);
4141
clearstatcache(true, $path);
4242
echo 'Iteration #' . $i++ . ': ';
4343
if (is_readable($path) == $exp) {
@@ -46,7 +46,7 @@ foreach ($iteration as $perms => $exp) {
4646
var_dump(is_readable($path), $exp);
4747
echo "failed.\n";
4848
}
49-
delete_file($path);
49+
delete_dir($path);
5050
}
5151

5252
?>

ext/standard/tests/file/windows_acls/bug44859_4.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ echo "Testing directory with relative path:\n";
3939
$path = 'adir';
4040
$i = 1;
4141
foreach ($iteration as $perms => $exp) {
42-
create_file($path, $perms);
42+
create_dir($path, $perms);
4343
clearstatcache(true, $path);
4444
echo 'Iteration #' . $i++ . ': ';
4545
if (is_readable($path) == $exp) {
@@ -48,7 +48,7 @@ foreach ($iteration as $perms => $exp) {
4848
var_dump(is_readable($path), $exp);
4949
echo "failed.\n";
5050
}
51-
delete_file($path);
51+
delete_dir($path);
5252
}
5353

5454
?>

0 commit comments

Comments
 (0)