1--TEST-- 2range(): mixed numeric types boundary inputs 3--INI-- 4serialize_precision=14 5--FILE-- 6<?php 7var_dump( range(1, "4") ); 8var_dump( range("1", 4) ); 9var_dump( range(1.5, "4.5") ); 10var_dump( range("1.5", 4.5) ); 11var_dump( range(9, "12") ); 12var_dump( range("9", 12) ); 13?> 14--EXPECT-- 15array(4) { 16 [0]=> 17 int(1) 18 [1]=> 19 int(2) 20 [2]=> 21 int(3) 22 [3]=> 23 int(4) 24} 25array(4) { 26 [0]=> 27 int(1) 28 [1]=> 29 int(2) 30 [2]=> 31 int(3) 32 [3]=> 33 int(4) 34} 35array(4) { 36 [0]=> 37 float(1.5) 38 [1]=> 39 float(2.5) 40 [2]=> 41 float(3.5) 42 [3]=> 43 float(4.5) 44} 45array(4) { 46 [0]=> 47 float(1.5) 48 [1]=> 49 float(2.5) 50 [2]=> 51 float(3.5) 52 [3]=> 53 float(4.5) 54} 55array(4) { 56 [0]=> 57 int(9) 58 [1]=> 59 int(10) 60 [2]=> 61 int(11) 62 [3]=> 63 int(12) 64} 65array(4) { 66 [0]=> 67 int(9) 68 [1]=> 69 int(10) 70 [2]=> 71 int(11) 72 [3]=> 73 int(12) 74} 75