diff --git a/ext/standard/tests/file/windows_acls/bug44859.phpt b/ext/standard/tests/file/windows_acls/bug44859.phpt index 20e10f5c5b63c..679734b3792a9 100644 --- a/ext/standard/tests/file/windows_acls/bug44859.phpt +++ b/ext/standard/tests/file/windows_acls/bug44859.phpt @@ -7,6 +7,7 @@ skipif(); ?> --FILE-- $exp) { create_file($path, $perms); clearstatcache(true, $path); @@ -34,7 +35,7 @@ foreach ($iteration as $perms => $exp) { } echo "Testing directory:\n"; -$path = __DIR__ . '/adir'; +$path = $uniqueBasePath . '_dir'; $i = 1; foreach ($iteration as $perms => $exp) { create_dir($path, $perms); diff --git a/ext/standard/tests/file/windows_acls/bug44859_2.phpt b/ext/standard/tests/file/windows_acls/bug44859_2.phpt index 583e63a2a6abe..b88d07f82007f 100644 --- a/ext/standard/tests/file/windows_acls/bug44859_2.phpt +++ b/ext/standard/tests/file/windows_acls/bug44859_2.phpt @@ -7,6 +7,7 @@ skipif(); ?> --FILE-- $exp) { create_file($path, $perms); clearstatcache(true, $path); @@ -34,7 +35,7 @@ foreach ($iteration as $perms => $exp) { } echo "Testing directory:\n"; -$path = __DIR__ . '/adir'; +$path = $uniqueBasePath . '_dir'; $i = 1; foreach ($iteration as $perms => $exp) { create_dir($path, $perms); diff --git a/ext/standard/tests/file/windows_acls/bug44859_4.phpt b/ext/standard/tests/file/windows_acls/bug44859_4.phpt index 452581fa05481..e0fbe11f4b25e 100644 --- a/ext/standard/tests/file/windows_acls/bug44859_4.phpt +++ b/ext/standard/tests/file/windows_acls/bug44859_4.phpt @@ -9,6 +9,7 @@ skipif(); ?> --FILE-- $exp) { create_file($path, $perms); clearstatcache(true, $path); @@ -36,7 +37,7 @@ foreach ($iteration as $perms => $exp) { } echo "Testing directory with relative path:\n"; -$path = 'adir'; +$path = $uniqueBaseName . '_dir'; $i = 1; foreach ($iteration as $perms => $exp) { create_dir($path, $perms); diff --git a/ext/standard/tests/file/windows_acls/common.inc b/ext/standard/tests/file/windows_acls/common.inc index b292745a6be13..5d4b402840fb6 100644 --- a/ext/standard/tests/file/windows_acls/common.inc +++ b/ext/standard/tests/file/windows_acls/common.inc @@ -168,32 +168,3 @@ function delete_dir($path) { return; } } -if (0) { -$path = __DIR__ . '/a.txt'; -create_file($path, PHPT_ACL_NONE); -if (!is_writable($path)) { - echo "PHPT_ACL_NONE success!!\n"; -} else { - echo "PHPT_ACL_NONE failed!!\n"; -} -delete_file($path); - -$path = __DIR__ . '/a.txt'; -create_file($path, PHPT_ACL_READ); -if (!is_writable($path)) { - echo "PHPT_ACL_READ success!!\n"; -} else { - echo "PHPT_ACL_READ failed!!\n"; -} -delete_file($path); - -$path = __DIR__ . '/adir'; -create_dir($path, PHPT_ACL_READ); -if (!is_writable($path)) { - echo "PHPT_ACL_READ dir success!!\n"; -} else { - echo "PHPT_ACL_READ dir failed!!\n"; -} -delete_dir($path); - -}