php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50320 fopen: illogic modes
Submitted: 2009-11-28 23:19 UTC Modified: 2009-11-28 23:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: plonk at doramail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.1 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: plonk at doramail dot com
New email:
PHP Version: OS:

 

 [2009-11-28 23:19 UTC] plonk at doramail dot com
Description:
------------
The "mode" letters defy any logic. For example, why not "rw" instead of "r+" for _r_eading/_w_riting?


Reproduce code:
---------------
---
From manual page: function.fopen
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-28 23:23 UTC] rasmus@php.net
I suppose if you have not had experience with any other language, they 
might seem illogical, but trust me, we didn't make these up.  These are 
the standard modes fopen takes in most languages, including the native 
C where it originated.  Changing them would confuse a lot of people.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 19:01:31 2024 UTC