summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug44607.phpt
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-08-26 16:07:05 +0000
committerPierre Joye <pajoye@php.net>2009-08-26 16:07:05 +0000
commit1a372313ca8e106b3816053ca9869282be01b6d1 (patch)
tree248085a8ab125e93bafc09eb65bb39502898ad70 /ext/standard/tests/file/bug44607.phpt
parent29b1bc623895f63eb8684e0055f2afa9f7e1992e (diff)
downloadphp-git-1a372313ca8e106b3816053ca9869282be01b6d1.tar.gz
- fix test and use __DIR__ as usual
Diffstat (limited to 'ext/standard/tests/file/bug44607.phpt')
-rw-r--r--ext/standard/tests/file/bug44607.phpt3
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--