From: getmequick at gmail dot com Operating system: Win XP PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: change the way 'implode' handles NULL values
Description: ------------ 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' (http://php.net/http_build_query) Reproduce code: --------------- <?php $dirs = array( 'dir1', 'dir2', false, 'dir3' ); $dir_str = implode( DIRECTORY_SEPARATOR, $dirs); echo $dir_str; ?> Expected result: ---------------- dir1\dir2\dir3 Actual result: -------------- dir1\dir2\\dir3 -- Edit bug report at http://bugs.php.net/?id=45593&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45593&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45593&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45593&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45593&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45593&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45593&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45593&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45593&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45593&r=support Expected behavior: http://bugs.php.net/fix.php?id=45593&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45593&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45593&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45593&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45593&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45593&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45593&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45593&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45593&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45593&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45593&r=mysqlcfg