#24220 [NEW]: String conversion to numbers in "range()"

From: Date: Tue, 17 Jun 2003 10:32:25 +0000
Subject: #24220 [NEW]: String conversion to numbers in "range()"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42112@lists.php.net to get a copy of this message
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

« previous php.bugs (#42112) next »