#50131 [Opn->Csd]: list() _does_ return a value
| From: | vrana@php.net | Date: | Fri, 13 Nov 2009 16:43:41 +0000 |
| Subject: | #50131 [Opn->Csd]: list() _does_ return a value | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3098@lists.php.net to get a copy of this message | ||
ID: 50131
Updated by: vrana@php.net
Reported By: scribu at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: 5.2.11
New Comment:
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.
"Returns the assigned array."
Previous Comments:
------------------------------------------------------------------------
[2009-11-09 21:43:30] scribu at gmail dot com
Description:
------------
In the docs, it is stated that list() doesn't return anything.
However, this is simply not the case: list() returns the array it was
given.
Reproduce code:
---------------
---
From manual page: function.list#Return Values
---
var_dump(list($a) = array(1, 2));
Expected result:
----------------
NULL
Actual result:
--------------
array(2) { [0]=> int(1) [1]=> int(2) }
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50131&edit=1