summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2003-06-17 13:19:21 +0000
committerSVN Migration <svn@php.net>2003-06-17 13:19:21 +0000
commit03468f30794f36db7f846f90e8271e8ea99028b7 (patch)
tree2553f25f7d267c02728ee0d5ce2a9f5a27a89b9a
parent138a1157ee0b0cd62a166361b080237c6afc0b5c (diff)
downloadphp-git-03468f30794f36db7f846f90e8271e8ea99028b7.tar.gz
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
-rw-r--r--ext/standard/tests/array/bug24220.phpt91
1 files changed, 91 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug24220.phpt b/ext/standard/tests/array/bug24220.phpt
new file mode 100644
index 0000000000..c8e25709e9
--- /dev/null
+++ b/ext/standard/tests/array/bug24220.phpt
@@ -0,0 +1,91 @@
+--TEST--n
+Bug #24220 (range() numeric string handling)
+--FILE--
+<?php
+ var_dump(range("2003", "2004"));
+ var_dump(range("a", "z"));
+ var_dump(range("1", "10"));
+?>
+--EXPECT--
+array(2) {
+ [0]=>
+ int(2003)
+ [1]=>
+ int(2004)
+}
+array(26) {
+ [0]=>
+ string(1) "a"
+ [1]=>
+ string(1) "b"
+ [2]=>
+ string(1) "c"
+ [3]=>
+ string(1) "d"
+ [4]=>
+ string(1) "e"
+ [5]=>
+ string(1) "f"
+ [6]=>
+ string(1) "g"
+ [7]=>
+ string(1) "h"
+ [8]=>
+ string(1) "i"
+ [9]=>
+ string(1) "j"
+ [10]=>
+ string(1) "k"
+ [11]=>
+ string(1) "l"
+ [12]=>
+ string(1) "m"
+ [13]=>
+ string(1) "n"
+ [14]=>
+ string(1) "o"
+ [15]=>
+ string(1) "p"
+ [16]=>
+ string(1) "q"
+ [17]=>
+ string(1) "r"
+ [18]=>
+ string(1) "s"
+ [19]=>
+ string(1) "t"
+ [20]=>
+ string(1) "u"
+ [21]=>
+ string(1) "v"
+ [22]=>
+ string(1) "w"
+ [23]=>
+ string(1) "x"
+ [24]=>
+ string(1) "y"
+ [25]=>
+ string(1) "z"
+}
+array(10) {
+ [0]=>
+ int(1)
+ [1]=>
+ int(2)
+ [2]=>
+ int(3)
+ [3]=>
+ int(4)
+ [4]=>
+ int(5)
+ [5]=>
+ int(6)
+ [6]=>
+ int(7)
+ [7]=>
+ int(8)
+ [8]=>
+ int(9)
+ [9]=>
+ int(10)
+}