php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21285 [chm] bug on function.fopen.html
Submitted: 2002-12-30 03:25 UTC Modified: 2002-12-30 03:27 UTC
From: anders dot bergquist at ilvismedia dot se Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.3 OS: windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anders dot bergquist at ilvismedia dot se
New email:
PHP Version: OS:

 

 [2002-12-30 03:25 UTC] anders dot bergquist at ilvismedia dot se
I have found a bug on page function.fopen.html
[chm date: 2002-08-28]...
The b -flag in fopen($string, "rb") is not mention in the text of the manual.

I find its important to download binary files to databased in windows. It take me several hours to find it out.

I suggest this addition to the text:

"mode may be any of the following: 
{... Your text

'a+' - Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.}

'b' adding this will indicate a binary file. This is important tothe windows operation system for handling binary files right.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-30 03:27 UTC] derick@php.net
Uhm,

it's already exactly at that location (just below "a+":

Note:  The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e. Windows. It's useless on Unix). If not needed, this will be ignored. You are encouraged to include the 'b' flag in order to make your scripts more portable. 

Derick

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 14:01:37 2025 UTC