PHP 4.0 Bug #9617: fileposition error
| From: | achim at lkcc dot org | Date: | Thu, 08 Mar 2001 11:02:20 +0000 |
| Subject: | PHP 4.0 Bug #9617: fileposition error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48228@lists.php.net to get a copy of this message | ||
From: achim@lkcc.org
Operating system: Windows
PHP version: 4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description: fileposition error
Open an existing text file (insert some crap before) like:
$output = fopen("test.txt", "a"); #we want append something
Here is the problem:
$position = ftell($output); #returns always 0 and not the real fileposition!!!
fputs($output, "test"); #but this works without any problems (it has the real
fileposition, but ftell gets the false one)
I found this bug only on windows systems, not on linux.
Achim
--
Edit Bug report at: http://bugs.php.net/?id=9617&edit=1