|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-17 05:32 UTC] minakov at bas-net dot by
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
)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
This is a doc problem. From PHP 4.1.0 and higher you can also use characters as a range... and the function effectively does range("2", "2") now (it takes the first character).