diff options
-rw-r--r-- | ext/standard/tests/file/bug44607.phpt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/tests/file/bug44607.phpt b/ext/standard/tests/file/bug44607.phpt index 8b2cf97f92..dc5e4cbd5e 100644 --- a/ext/standard/tests/file/bug44607.phpt +++ b/ext/standard/tests/file/bug44607.phpt @@ -3,7 +3,7 @@ Bug #44607 (stream_get_line unable to correctly identify the "ending" in the str --FILE-- <?php $eol = '<EOL>'; -$tempnam = tempnam(sys_get_temp_dir(), 'php'); +$tempnam = __DIR__ . '/' . 'tmpbug44607.txt'; $data = str_repeat('.', 14000); $data .= $eol; $data .= $data; @@ -14,6 +14,7 @@ var_dump(strlen(stream_get_line($fd, 15000, $eol))); fseek($fd, 1, SEEK_SET); var_dump(strlen(stream_get_line($fd, 15000, $eol))); var_dump(strlen(stream_get_line($fd, 15000, $eol))); +fclose($fd); unlink($tempnam); ?> --EXPECT-- |