]> granicus.if.org Git - php/commitdiff
fix ACLs tests, make it create dir where it has to, not file
authorAnatol Belski <ab@php.net>
Mon, 5 Jan 2015 18:19:24 +0000 (19:19 +0100)
committerAnatol Belski <ab@php.net>
Mon, 5 Jan 2015 18:19:24 +0000 (19:19 +0100)
ext/standard/tests/file/windows_acls/bug44859.phpt
ext/standard/tests/file/windows_acls/bug44859_2.phpt
ext/standard/tests/file/windows_acls/bug44859_4.phpt

index 952b6eb4c48a96cbd1ac50da681c9c4c11705e7e..4454ee11732e5080163f9136114ce74c91fa5233 100644 (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);
 }
 
 ?>
index d741156baaf0b5c86e28ab75c250951b3b00cd9d..514953f42efb144bf30419897787e3582aa74d7f 100644 (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);
 }
 
 ?>
index 954c1004a53697d1064ca3cc0e5f85cc935e373a..bf640fa660e88e0be7b876eb892c3af5d9ad3ce5 100644 (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);
 }
 
 ?>