Skip to content

Commit 97d8cb4

Browse files
committed
ext/posix: Edit clean section
1 parent 2ea77e5 commit 97d8cb4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ext/posix/tests/posix_access_flags.phpt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ if (posix_access($testfile, POSIX_F_OK)) {
4444
?>
4545
--CLEAN--
4646
<?php
47-
$dir = __DIR__;
48-
$testfile = "$dir/testfile.txt";
49-
if (file_exists($testfile)) {
50-
unlink($testfile);
51-
}
47+
unlink(__DIR__ . '/testfile.txt');
5248
?>
5349
--EXPECTF--
5450
posix_access(): Argument #2 ($flags) must be a bitmask of POSIX_F_OK, POSIX_R_OK, POSIX_W_OK, and POSIX_X_OK

0 commit comments

Comments
 (0)