php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65401 [FR] Translation error in the French manual of fopen()
Submitted: 2013-08-06 08:52 UTC Modified: 2013-08-06 12:37 UTC
From: raybaudroigm at gmail dot com Assigned: yannick (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.1 OS:
Private report: No CVE-ID: None
 [2013-08-06 08:52 UTC] raybaudroigm at gmail dot com
Description:
------------
Hello,

There is an error in the French translation of the fopen() manual.  
The URL of the this manual is: <http://php.net/manual/fr/function.fopen.php>

The error is in the table titled "Liste des modes possibles pour la fonction 
fopen() en utilisant le paramètre mode" ("List of possible modes for fopen() 
function using the mode parameter"), at the seventh line.

The documentation says:

> `'x'`   Crée et ouvre le fichier en *lecture seule* ; place le pointeur de
> fichier au début du fichier. Si le fichier existe déjà, `fopen()` va 
> échouer, en retournant `FALSE` et en générant une erreur de niveau
> `E_WARNING`. Si le fichier n'existe pas, `fopen()` tente de le créer. Ce mode
> est l'équivalent des options `O_EXCL|O_CREAT` pour l'appel système `open(2)`
> sous-jacent.

Which means:

> `'x'`   Create and open for *reading only*; place the file pointer at the
> beginning of the file. If the file already exists, the `fopen()` call will
> fail by returning `FALSE` and generating an error of level `E_WARNING`. If
> the file does not exist, attempt to create it. This is equivalent to
> specifying `O_EXCL|O_CREAT` flags for the underlying `open(2)` system call.

While the English version says:

> `'x'`   Create and open for *writing only*; place the file pointer at the
> beginning of the file. If the file already exists, the `fopen()` call will
> fail by returning `FALSE` and generating an error of level `E_WARNING`. If
> the file does not exist, attempt to create it. This is equivalent to
> specifying `O_EXCL|O_CREAT` flags for the underlying `open(2)` system call.

This error is present in the last version of the French `fopen()` manual at
<http://php.net/manual/fr/function.fopen.php>.
The original version can be found at
<http://php.net/manual/en/function.fopen.php>.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-06 12:33 UTC] yannick@php.net
-Summary: Translation error in the French manual of fopen() +Summary: [FR] Translation error in the French manual of fopen()
 [2013-08-06 12:37 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=331070
Log: Fix bug #65401
 [2013-08-06 12:37 UTC] yannick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yannick
 [2013-08-06 12:37 UTC] yannick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=68757ed091cd36369c250f12f5662e96ca560d79
Log: Fix bug #65401
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC