From: minakov at bas-net dot by Operating system: WinXP PHP version: 4.3.1 PHP Bug Type: Scripting Engine problem Bug description: String conversion to numbers in "range()"
Description: ------------ I've found a bug with "range" in PHP 4.3.1; eg. print_r(range("2003", "2004")) != print_r(range(2003, 2004)); print_r(range("2003", "2004")) == print_r(range(2, 2)); Reproduce code: --------------- print_r(range("2003", "2004")); Expected result: ---------------- Array ( [0] => 2003 [1] => 2004 ) Actual result: -------------- Array ( [0] => 2 ) -- Edit bug report at http://bugs.php.net/?id=24220&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24220&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24220&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24220&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24220&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24220&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24220&r=support Expected behavior: http://bugs.php.net/fix.php?id=24220&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24220&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24220&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24220&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24220&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24220&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24220&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24220&r=gnused