Skip to content

Commit 540c1fc

Browse files
committed
Do not rely on tmp dir
1 parent 0d3815d commit 540c1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/posix/tests/posix_fpathconf.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
} catch (\TypeError $e) {
1616
echo $e->getMessage() . "\n";
1717
}
18-
$fd = fopen(sys_get_temp_dir(), "r");
18+
$fd = fopen(__DIR__, "r");
1919
var_dump(posix_fpathconf($fd, POSIX_PC_PATH_MAX));
2020
fclose($fd);
2121
?>

0 commit comments

Comments
 (0)