|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45593 change the way 'implode' handles NULL values
Submitted: 2008-07-22 15:18 UTC Modified: 2018-09-04 17:12 UTC
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: getmequick at gmail dot com Assigned:
Status: Suspended Package: Strings related
PHP Version: 5.2.6 OS: Win XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
27 - 1 = ?
Subscribe to this entry?

 [2008-07-22 15:18 UTC] getmequick at gmail dot com
I'd like to know if it's reasonable to have 'implode' function do not concatenate 'null/false' values into resulting string.

like it does 'http_build_query' (

Reproduce code:
$dirs		=  array(

$dir_str    = implode( DIRECTORY_SEPARATOR, $dirs);
echo $dir_str; 

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:23 UTC]
-Package: Feature/Change Request +Package: Strings related
 [2018-09-04 17:12 UTC]
-Status: Open +Status: Suspended
 [2018-09-04 17:12 UTC]
At least due to the resulting BC break this feature request
requires discussion on the internals@ mailing list, and perhaps an
RFC[1].  Anybody is welcom to start the discussion.  For the time
being, I'm suspending this ticket.

[1] <>
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 18:01:44 2019 UTC