mirror of
https://github.com/php/php-src.git
synced 2024-09-25 11:57:26 +00:00
Remove bogus test.
Append mode always causes written data to go to the end of the file, regardless of the current seek position.
This commit is contained in:
parent
7e92f636ef
commit
32c1eafe85
@ -1,23 +0,0 @@
|
||||
--TEST--
|
||||
Bug #21131: fopen($filename, "a+") has broken position
|
||||
--FILE--
|
||||
<?php # vim600:syn=php:
|
||||
$filename = tempnam("/tmp", "phpt");
|
||||
|
||||
$fp = fopen($filename, "w") or die("can't open $filename for append");
|
||||
fwrite($fp, "foobar");
|
||||
fclose($fp);
|
||||
|
||||
$fp = fopen($filename, "a+");
|
||||
var_dump(ftell($fp));
|
||||
rewind($fp);
|
||||
var_dump(ftell($fp));
|
||||
fpassthru($fp);
|
||||
fclose($fp);
|
||||
unlink($filename);
|
||||
?>
|
||||
--EXPECT--
|
||||
int(6)
|
||||
int(0)
|
||||
foobar
|
||||
|
Loading…
Reference in New Issue
Block a user