summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-16 15:42:14 +0000
committerWez Furlong <wez@php.net>2003-02-16 15:42:14 +0000
commit32c1eafe858d06dea94e74e3ad52d65b8b84ca0d (patch)
treed0b2a987bcf774a5b1cab895a04bb876744c9fce
parent7e92f636ef142d4200138b05e6be69863a491b2d (diff)
downloadphp-git-32c1eafe858d06dea94e74e3ad52d65b8b84ca0d.tar.gz
Remove bogus test.
Append mode always causes written data to go to the end of the file, regardless of the current seek position.
-rw-r--r--ext/standard/tests/file/bug21131.phpt23
1 files changed, 0 insertions, 23 deletions
diff --git a/ext/standard/tests/file/bug21131.phpt b/ext/standard/tests/file/bug21131.phpt
deleted file mode 100644
index 00c3781f9c..0000000000
--- a/ext/standard/tests/file/bug21131.phpt
+++ /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
-