Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/PHP-8.3/ext/standard/tests/array/range/
H A Drange_inputs_float_NAN_values.phpt35 range(NAN, NAN);
37 range(NAN, NAN);
39 range(NAN, NAN);
41 range(NAN, 5.5);
43 range(NAN, NAN);
45 range(NAN, NAN);
47 range(NAN, NAN);
49 range(NAN, 5.5);
51 range(NAN, NAN);
53 range(NAN, NAN);
[all …]
H A Drange_step_errors.phpt9 var_dump( range(1.0, 7.0, 0.0) );
14 var_dump( range(1, 7, 0) );
19 var_dump( range('A', 'H', 0) );
24 var_dump( range('A', 'H', 0.0) );
35 var_dump( range(1, 7, 10.0**400) );
64 var_dump( range(1.0, 7.0, 6.5) );
78 var_dump(range('a', 'z', 100));
85 var_dump(range('z', 'a', 100));
92 var_dump(range('a', 'c', -1));
97 var_dump(range(1, 3, -1));
[all …]
H A Drange_variation1.phpt2 Test range() function (variation-2)
12 echo "\n*** Testing max/outof range values ***\n";
13 /*var_dump( range("a", "z", 255) );
14 var_dump( range("z", "a", 255) ); */
15 var_dump( range(2147483645, 2147483646) );
16 var_dump( range(2147483646, 2147483648) );
17 var_dump( range(-2147483647, -2147483646) );
18 var_dump( range(-2147483648, -2147483647) );
19 var_dump( range(-2147483649, -2147483647) );
24 *** Testing max/outof range values ***
H A Drange_variation1_64bit.phpt2 Test range() function (variation-2)
12 echo "\n*** Testing max/outof range values ***\n";
13 /*var_dump( range("a", "z", 255) );
14 var_dump( range("z", "a", 255) ); */
15 var_dump( range(2147483645, 2147483646) );
16 var_dump( range(2147483646, 2147483648) );
17 var_dump( range(-2147483647, -2147483646) );
18 var_dump( range(-2147483648, -2147483647) );
19 var_dump( range(-2147483649, -2147483647) );
24 *** Testing max/outof range values ***
H A Drange_inputs_float_basic.phpt2 range(): float boundary inputs
8 var_dump( range(1.5, 6.5) );
10 echo "\nDecreasing range\n";
11 var_dump( range(6.5, 1.5) );
14 var_dump( range(5.5, 5.5) );
17 var_dump( range(1.5, 10.5, 3) );
18 var_dump( range(10.5, 1.5, 3) );
19 var_dump( range(1.5, 10.5, "3") );
22 var_dump( range(1.6, 2.2, 0.1) );
23 var_dump( range(2.2, 1.6, 0.1) );
[all …]
H A Drange_inputs_int_basic.phpt2 range(): integer boundary inputs
8 var_dump( range(1, 10) );
10 echo "\nDecreasing range\n";
11 var_dump( range(10, 1) );
14 var_dump( range(5, 5) );
17 var_dump( range(1, 10, 3) );
18 var_dump( range(10, 1, 3) );
19 var_dump( range(1, 10, "3") );
22 var_dump( range(1, 2, 0.1) );
23 var_dump( range(2, 1, 0.1) );
[all …]
H A Dbug41121.phpt2 Bug #41121 (range() overflow handling for large numbers on 32bit machines)
11 var_dump(range(2147483400, 2147483600, 100));
12 var_dump( range(2147483646, 2147483648, 1 ) );
13 var_dump( range(2147483646, 2147483657, 1 ) );
14 var_dump( range(2147483630, 2147483646, 5 ) );
17 var_dump( range(-2147483645, -2147483648, 1 ) );
18 var_dump( range(-2147483645, -2147483649, 1 ) );
19 var_dump( range(-2147483630, -2147483646, 5 ) );
22 var_dump(range(2147483647, 2147483645, 1 ));
23 var_dump(range(2147483648, 2147483645, 1 ));
H A Drange_inputs_string_numeric.phpt2 range(): numeric string boundary inputs
8 var_dump( range("1", "10") );
10 echo "\nDecreasing range\n";
11 var_dump( range("10", "1") );
14 var_dump( range("5", "5") );
17 var_dump( range("1", "10", 3) );
18 var_dump( range("10", "1", 3) );
19 var_dump( range("1", "10", "3") );
22 var_dump( range("1", "2", 0.1) );
23 var_dump( range("2", "1", 0.1) );
[all …]
H A Drange_inputs_null_variations.phpt2 Test range() function with null as argument.
7 echo "range(null, null)\n";
8 var_dump( range(null, null) );
11 var_dump( range(null, 5) );
12 var_dump( range(5, null) );
15 var_dump( range(null, 4.5) );
16 var_dump( range(4.5, null) );
19 var_dump( range(null, 'e') );
20 var_dump( range('e', null) );
25 range(null, null)
[all …]
H A Drange_inputs_numeric_basic.phpt2 range(): mixed numeric types boundary inputs
7 var_dump( range(1, "4") );
8 var_dump( range("1", 4) );
9 var_dump( range(1.5, "4.5") );
10 var_dump( range("1.5", 4.5) );
11 var_dump( range(9, "12") );
12 var_dump( range("9", 12) );
H A Drange_inputs_string_invalid.phpt2 Test range() function with unexpected string inputs
9 var_dump( range("AA", "BB") );
12 var_dump( range("Z", "") ); // Both strings are cast to int, i.e. 0
13 var_dump( range("", "Z") ); // Both strings are cast to int, i.e. 0
16 var_dump( range("3.5", "A") ); // The char is cast to a float, i.e. 0
17 var_dump( range("?", "3.5") ); // The char is cast to a float, i.e. 0
20 var_dump( range("A", "H", 2.6) ); // Because step is fractional it tries to interpret inputs as flo…
27 Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in %s on…
29 Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in %s on l…
38 Warning: range(): Argument #2 ($end) must not be empty, casted to 0 in %s on line %d
[all …]
H A Drange_inputs_float_small_step_exhaustion.phpt2 Creating a range that exceeds the maximum array size
6 var_dump(range(0, 100_000_000_000, 0.1));
11 var_dump(range(PHP_INT_MIN, PHP_INT_MAX, 1));
17 The supplied range exceeds the maximum array size: start=0.0 end=100000000000.0 step=0.1
18 The supplied range exceeds the maximum array size: start=-%d end=%d step=1
H A Drange_negative_step_decreasing_ranges.phpt2 range() allows $step parameter to be negative for decreasing ranges
7 var_dump(range('c', 'a', -1));
8 var_dump(range(3, 1, -1));
9 var_dump(range(3.5, 1.5, -1.5));
/PHP-8.3/main/streams/
H A Dmmap.c23 php_stream_mmap_range range; in _php_stream_mmap_range() local
25 range.offset = offset; in _php_stream_mmap_range()
26 range.length = length; in _php_stream_mmap_range()
27 range.mode = mode; in _php_stream_mmap_range()
28 range.mapped = NULL; in _php_stream_mmap_range()
30 … == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_MAP_RANGE, &range)) { in _php_stream_mmap_range()
32 *mapped_len = range.length; in _php_stream_mmap_range()
34 return range.mapped; in _php_stream_mmap_range()
/PHP-8.3/ext/standard/tests/array/
H A Darray_slice_variation1.phpt6 var_dump(array_slice(range(1, 3), 0, NULL, 1));
7 var_dump(array_slice(range(1, 3), 0, 0, 1));
8 var_dump(array_slice(range(1, 3), 0, NULL));
9 var_dump(array_slice(range(1, 3), 0, 0));
11 var_dump(array_slice(range(1, 3), -1, 0));
12 var_dump(array_slice(range(1, 3), -1, 0, 1));
13 var_dump(array_slice(range(1, 3), -1, NULL));
14 var_dump(array_slice(range(1, 3), -1, NULL, 1));
19 var_dump(array_slice(range(1, 3), 0, $a));
24 var_dump(array_slice(range(1, 3), 0, $a));
H A Dbug61967.phpt6 range(1, 5),
7 range(1, 5),
8 range(1, 5),
9 range(1, 5),
10 range(1, 5),
/PHP-8.3/ext/date/tests/
H A Dmktime-3.phpt19 echo "out of range\n";
30 Y: 69 - out of range
35 Y: 105 - out of range
36 Y: 1900 - out of range
37 Y: 1901 - out of range
45 Y: 69 - out of range
50 Y: 105 - out of range
51 Y: 1900 - out of range
52 Y: 1901 - out of range
H A Dgmdate_variation12_64bits.phpt2 Test gmdate() function : usage variation - Valid and invalid range of timestamp 64 bits.
15 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n";
19 echo "\n-- Testing gmdate() function with less than the range of timestamp --\n";
22 echo "\n-- Testing gmdate() function with maximum range of timestamp --\n";
26 echo "\n-- Testing gmdate() function with greater than the range of timestamp --\n";
34 -- Testing gmdate() function with minimum range of timestamp --
37 -- Testing gmdate() function with less than the range of timestamp --
40 -- Testing gmdate() function with maximum range of timestamp --
43 -- Testing gmdate() function with greater than the range of timestamp --
H A Dgmdate_variation12.phpt2 Test gmdate() function : usage variation - Valid and invalid range of timestamp 32 bits.
14 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n";
18 echo "\n-- Testing gmdate() function with less than the range of timestamp --\n";
22 echo "\n-- Testing gmdate() function with maximum range of timestamp --\n";
26 echo "\n-- Testing gmdate() function with greater than the range of timestamp --\n";
34 -- Testing gmdate() function with minimum range of timestamp --
37 -- Testing gmdate() function with less than the range of timestamp --
42 -- Testing gmdate() function with maximum range of timestamp --
45 -- Testing gmdate() function with greater than the range of timestamp --
H A Dbug-gh9763.phpt21 …DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (+99:60)
22 …DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (+99:62)
23 …DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (-99:62)
24 …DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (-99:60)
25 … DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (+9960)
26 … DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (-9960)
/PHP-8.3/ext/standard/tests/strings/
H A Dstr_decrement_underflow.phpt27 str_decrement(): Argument #1 ($string) "0" is out of decrement range
28 str_decrement(): Argument #1 ($string) "a" is out of decrement range
29 str_decrement(): Argument #1 ($string) "A" is out of decrement range
30 str_decrement(): Argument #1 ($string) "00" is out of decrement range
31 str_decrement(): Argument #1 ($string) "0a" is out of decrement range
32 str_decrement(): Argument #1 ($string) "0A" is out of decrement range
/PHP-8.3/Zend/tests/generators/
H A Dgenerator_with_arg_unpacking.phpt5 (function() { yield; })(...range(1, 16384));
6 call_user_func_array(function() { yield; }, range(1, 16384));
7 $g = (function() { yield; })(...range(1, 16384));
8 $g = call_user_func_array(function() { yield; }, range(1, 16384));
/PHP-8.3/ext/standard/tests/url/
H A Dparse_url_error_002.phpt2 Test parse_url() function: url component specifier out of range
5 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n";
8 echo "--> Below range:";
11 echo "\n\n--> Above range:\n";
21 *** Testing parse_url() : error conditions: url component specifier out of range ***
22 --> Below range:array(8) {
42 --> Above range:
/PHP-8.3/ext/random/tests/01_functions/
H A Dmt_rand_basic.phpt20 echo "PASSED: range min = 0 max = ", $default_max, "\n";
48 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
55 PASSED: range min = 0 max = 2147483647
58 PASSED: range min = 10 max = 100
59 PASSED: range min = 100 max = 1000
60 PASSED: range min = 10500 max = 1050000
61 PASSED: range min = 16 max = 65536
62 PASSED: range min = 256 max = 448
H A Drand_basic.phpt20 echo "PASSED: range min = 0 max = ", $default_max, "\n";
48 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
55 PASSED: range min = 0 max = %i
58 PASSED: range min = 10 max = 100
59 PASSED: range min = 100 max = 1000
60 PASSED: range min = 10500 max = 1050000
61 PASSED: range min = 16 max = 65536
62 PASSED: range min = 256 max = 448

Completed in 54 milliseconds

12345678910>>...13