php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50712 [FR] The list function manual page does not describe what function actually does
Submitted: 2010-01-10 11:10 UTC Modified: 2010-01-17 16:04 UTC
From: alex dot henriet at gmail dot com Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2010-01-10 11:10 UTC] alex dot henriet at gmail dot com
Description:
------------
On page http://be2.php.net/manual/fr/function.list.php, 
the french description for function "list" is :

"list ? Transforme une liste de variables en tableau"
meaning : list transforms a list of variables into an array.

Actually, what does that function is just the opposite ..
It assigns values coming from an array to variables that you pass as parameters .. 

Maybe it is not only a translation problem, the return value seems strange too .. I don't think list() is supposed to return an array.
So maybe the english page and probably others should also be fixed?




Reproduce code:
---------------
list
(PHP 4, PHP 5)
list ? Transforme une liste de variables en tableau

array list  ( mixed $varname  [, mixed $...  ] )

Valeurs de retour
Retourne le tableau assign?. 

Expected result:
----------------
Irrelevant

Actual result:
--------------
Irrelevant

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-10 11:22 UTC] alex dot henriet at gmail dot com
Well, ok .. forget the last part, it effectively returns an array when the variable have been assigned with the array values, but still, I think the description in French does not describe correctly the purpose of that language construct.
 [2010-01-17 16:04 UTC] svn@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=293649
Log: Fix bug #50712
 [2010-01-17 16:04 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:50 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=ee2be5bf5c82cda492a86518e677aeb5830b91d2
Log: Fix bug #50712
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC