php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52122 implode(): No description of return value for degenerate case
Submitted: 2010-06-19 04:36 UTC Modified: 2010-06-25 00:07 UTC
From: daniel at danielnorton dot com Assigned: degeberg (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniel at danielnorton dot com
New email:
PHP Version: OS:

 

 [2010-06-19 04:36 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-25 00:07 UTC] 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-25 00:07 UTC] degeberg@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: degeberg
 [2010-06-25 00:07 UTC] degeberg@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.

Added extra example to show what will happen.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC