com php-src: fix ACLs tests, make it create dir where it has to, not file: ext/standard/tests/file/windows_acls/bug44859.php t
ext/standard/tests/file/windows_acls/bug44859 _2.phpt ext/standard/tests/file/windows_acls/bug4 4859_4.phpt

From: Date: Mon, 05 Jan 2015 18:19:24 +0000
Subject: com php-src: fix ACLs tests, make it create dir where it has to, not file: ext/standard/tests/file/windows_acls/bug44859.php t
ext/standard/tests/file/windows_acls/bug44859 _2.phpt ext/standard/tests/file/windows_acls/bug4 4859_4.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84000@lists.php.net to get a copy of this message
Commit: 339139f876aff8adacec89814c1278608976668f Author: Anatol Belski <ab@php.net> Mon, 5 Jan 2015 19:19:24 +0100 Parents: 4bb580adb1d24504370f5da6434d9bc1bcc582fe Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=339139f876aff8adacec89814c1278608976668f Log: fix ACLs tests, make it create dir where it has to, not file Changed paths: M ext/standard/tests/file/windows_acls/bug44859.phpt M ext/standard/tests/file/windows_acls/bug44859_2.phpt M ext/standard/tests/file/windows_acls/bug44859_4.phpt Diff: diff --git a/ext/standard/tests/file/windows_acls/bug44859.phpt b/ext/standard/tests/file/windows_acls/bug44859.phpt index 952b6eb..4454ee1 100644 --- a/ext/standard/tests/file/windows_acls/bug44859..phpt +++ b/ext/standard/tests/file/windows_acls/bug44859.phpt @@ -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); } ?> diff --git a/ext/standard/tests/file/windows_acls/bug44859_2.phpt b/ext/standard/tests/file/windows_acls/bug44859_2.phpt index d741156..514953f 100644 --- a/ext/standard/tests/file/windows_acls/bug44859_2.phpt +++ b/ext/standard/tests/file/windows_acls/bug44859_2.phpt @@ -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); } ?> diff --git a/ext/standard/tests/file/windows_acls/bug44859_4.phpt b/ext/standard/tests/file/windows_acls/bug44859_4.phpt index 954c100..bf640fa 100644 --- a/ext/standard/tests/file/windows_acls/bug44859_4.phpt +++ b/ext/standard/tests/file/windows_acls/bug44859_4.phpt @@ -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); } ?>

« previous php.cvs (#84000) next »