PHP 4.0 Bug #9617 Updated: fileposition error

From: Date: Tue, 13 Mar 2001 11:34:46 +0000
Subject: PHP 4.0 Bug #9617 Updated: fileposition error
Groups: php.dev 
Request: Send a blank email to php-dev+get-48802@lists.php.net to get a copy of this message
ID: 9617 Updated by: dbeu Reported By: achim@lkcc.org Old-Status: Open Status: Closed Bug Type: Filesystem function related Assigned To: Comments: following script works okay for me (win2k) so closing. <?php $output = fopen("test.txt", "a+"); echo "bytes written: ", fputs($output, "test"), "\n<br>file offset: ". ftell($output); fclose($output); ?> Previous Comments: --------------------------------------------------------------------------- [2001-03-08 06:02:20] achim@lkcc.org 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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9617&edit=2

« previous php.dev (#48802) next »