#43760 [Opn->Csd]: Small update current() function.
| From: | felipe@php.net | Date: | Sun, 06 Jan 2008 12:31:45 +0000 |
| Subject: | #43760 [Opn->Csd]: Small update current() function. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-413@lists.php.net to get a copy of this message | ||
ID: 43760
Updated by: felipe@php.net
Reported By: phpbugs at dnr dot servegame dot org
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: any
PHP Version: Irrelevant
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.
Added information and example. :)
Previous Comments:
------------------------------------------------------------------------
[2008-01-05 15:58:19] phpbugs at dnr dot servegame dot org
Description:
------------
current() also returns FALSE if the array is empty. This isn't
mentioned in the documentation. Might seem obvious, but it could also
return NULL.
Reproduce code:
---------------
<?php
$map = array();
var_dump(current($map));
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43760&edit=1