From: timothy dot wilson at lmco dot com Operating system: unix PHP version: 4.3.1 PHP Bug Type: Feature/Change Request Bug description: implode error
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 bug report at http://bugs.php.net/?id=26007&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26007&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26007&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26007&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26007&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26007&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26007&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26007&r=support Expected behavior: http://bugs.php.net/fix.php?id=26007&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26007&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26007&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26007&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26007&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26007&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26007&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26007&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26007&r=float