#26007 [Opn->WFx]: implode error

From: Date: Tue, 28 Oct 2003 15:34:06 +0000
Subject: #26007 [Opn->WFx]: implode error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49571@lists.php.net to get a copy of this message
 ID:               26007
 Updated by:       sniper@php.net
 Reported By:      timothy dot wilson at lmco dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: unix
 PHP Version:      4.3.1
 New Comment:

This will not be changed. Just think of the 'wtf factor'.
It's hard enough to find bugs in your scripts already given all the
"lazy" features in PHP.



Previous Comments:
------------------------------------------------------------------------

[2003-10-27 13:04:41] timothy dot wilson at lmco dot com

Description:
------------
My request is to have implode not blow up when not given an array. 
This could be done by setting a standard for the variable order

implode(glue, pieces)

check pieces for is_array()...if so, then do your thing, if not then
return pieces instead of an error.

Reproduce code:
---------------
$arr="blah";

$new_list = implode ("|", $arr);

echo $new_list;

Expected result:
----------------
blah

Actual result:
--------------
error:....


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26007&edit=1


Thread (2 messages)

« previous php.bugs (#49571) next »