ID: 28371 Updated by: [EMAIL PROTECTED] Reported By: rc at opelgt dot org -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: MacOSX 10.3 PHP Version: 4.3.4 New Comment:
Please tell us what exactly is not documented. In my eyes, everything works exactly as described on fopen page, mainly in the table "A list of possible modes for fopen() using mode". Previous Comments: ------------------------------------------------------------------------ [2005-02-03 05:05:56] [EMAIL PROTECTED] reclassified ------------------------------------------------------------------------ [2004-05-13 15:19:46] rc at opelgt dot org Yes, my sent script runs identically for all modes under Linux and MacOSX. Its different among the modes. The mode options in fopen() for my understanding should have only effect for the start: position of pointer, content of file, file creation if nessessary or not. Sure, read or write or both ways of access should remain until fclose(). ;-) 'r' and 'w' need clearstatcache() but 'a' doesnt. That is the unexpected and in the manual not mentioned difference. ------------------------------------------------------------------------ [2004-05-13 14:28:21] rc at opelgt dot org I think it could be mention in the manual: In PHP 4.2.3 the read pointer for fopen with 'a' is at the end of file. Instead in 4.3.4 the pointer is at '0'! So rewind for reading in 4.3.4 with 'a+' is no longer nessessary. R�diger ------------------------------------------------------------------------ [2004-05-12 19:12:34] rc at opelgt dot org Do you really think when such strange differences occur and the fopen description says nothing about it, its a question for support? Do you know why this differences occurs? Output with w+ is: Inhalt<BR> alt: <BR> neu: and with r+: Inhalt<BR> alt: 1234567890<BR> neu: R�diger ------------------------------------------------------------------------ [2004-05-12 18:52:46] [EMAIL PROTECTED] The output under both linux and OSX is: Inhalt<BR> alt: 1234567890<BR> neu: 13579 Your bug report doesn't sound so much like a bug report, but a support request; this isn't a support forum, so if you don't understand these results even after careful scrutiny of the fopen() manual page, please visit http://www.php.net/support.php to find someone who might be able to help you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28371 -- Edit this bug report at http://bugs.php.net/?id=28371&edit=1
