Skip to content

Commit e3925a5

Browse files
committed
Do not rely on tmp dir
1 parent 1182da4 commit e3925a5

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
@@ -11,7 +11,7 @@ try {
1111
} catch (\TypeError $e) {
1212
echo $e->getMessage() . "\n";
1313
}
14-
$fd = fopen(sys_get_temp_dir(), "r");
14+
$fd = fopen(__DIR__, "r");
1515
var_dump(posix_fpathconf($fd, POSIX_PC_PATH_MAX));
1616
fclose($fd);
1717
?>

0 commit comments

Comments
 (0)