Doc #52122 [Opn->Csd]: implode(): No description of return value for degenerate case
| From: | degeberg@php.net | Date: | Thu, 24 Jun 2010 22:07:47 +0000 |
| Subject: | Doc #52122 [Opn->Csd]: implode(): No description of return value for degenerate case | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4596@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52122&edit=1
ID: 52122
Updated by: degeberg@php.net
Reported by: daniel at danielnorton dot com
Summary: implode(): No description of return value for degenerate
case
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: degeberg
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 extra example to show what will happen.
Previous Comments:
------------------------------------------------------------------------
[2010-06-25 00:07:29] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=300736
Log: Fixed PHP bug #52122 (implode(): No description of return value for
degenerate case)
------------------------------------------------------------------------
[2010-06-19 04:36:29] daniel at danielnorton dot com
Description:
------------
The description of the return value refers to "elements", so the
description does
not specifically describe the degenerate case: when there are *no*
elements.
PHP is not consistent in degenerate cases, so the reader might
reasonably conclude
that the result in the degenerate case might be NULL, FALSE or the empty
string
("").
In PHP 5.2, at least, the return value for the degenerate case is the
empty
string.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52122&edit=1