]> granicus.if.org Git - php/commitdiff
Remove bogus test.
authorWez Furlong <wez@php.net>
Sun, 16 Feb 2003 15:42:14 +0000 (15:42 +0000)
committerWez Furlong <wez@php.net>
Sun, 16 Feb 2003 15:42:14 +0000 (15:42 +0000)
Append mode always causes written data to go to the end of the file,
regardless of the current seek position.

ext/standard/tests/file/bug21131.phpt [deleted file]

diff --git a/ext/standard/tests/file/bug21131.phpt b/ext/standard/tests/file/bug21131.phpt
deleted file mode 100644 (file)
index 00c3781..0000000
+++ /dev/null
@@ -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
-