ID:               24071
 Updated by:       [EMAIL PROTECTED]
 Reported By:      artem at w510 dot tm dot odessa dot ua
 Status:           Open
-Bug Type:         Filesystem function related
+Bug Type:         Documentation problem
 Operating System: redhat
 PHP Version:      4.3.2
 New Comment:

'a' mode forces the kernel to always write at the end of the file.
ftell() will give undefined results for append-only streams, as will
seeking.

Writing to such a file should always be appended, regardless of the
results from ftell().

Making this a documentation problem.


Previous Comments:
------------------------------------------------------------------------

[2003-06-06 17:46:09] artem at w510 dot tm dot odessa dot ua

after installing 4.3.2 
 $fr = fopen("filename", "a");
 $pointer = ftell($fr);

points to 0! forced to add

  fseek($fr, 0, SEEK_END);
  $pointer = ftell($fr);

to move to the file end

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24071&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to