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:
Wez Furlong 2003-02-16 15:42:14 +00:00
parent 7e92f636ef
commit 32c1eafe85

View File

@ -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