From: dan at yes dot lt Operating system: WinXP PHP version: 5.0.4 PHP Bug Type: *General Issues Bug description: explode do not works with $limit = null
Description: ------------ explode() do not explodes string if $limit argument is null, but explodes if no $limit argument given. Reproduce code: --------------- print_r(explode(',', 'a,b,c')); print_r(explode(',', 'a,b,c', null)); Expected result: ---------------- Array ( [0] => a [1] => b [2] => c ) Array ( [0] => a [1] => b [2] => c ) Actual result: -------------- Array ( [0] => a [1] => b [2] => c ) Array ( [0] => a,b,c ) -- Edit bug report at http://bugs.php.net/?id=32865&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32865&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32865&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32865&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32865&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32865&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32865&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32865&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32865&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32865&r=support Expected behavior: http://bugs.php.net/fix.php?id=32865&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32865&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32865&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32865&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32865&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32865&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32865&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32865&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32865&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32865&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32865&r=mysqlcfg