Home
last modified time | relevance | path

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

123456789

/PHP-7.0/ext/standard/tests/array/
H A Drange_errors.phpt2 Test range() function (errors)
44 Warning: range(): step exceeds the specified range in %s on line %d
47 Warning: range(): step exceeds the specified range in %s on line %d
52 Warning: range(): step exceeds the specified range in %s on line %d
55 Warning: range(): step exceeds the specified range in %s on line %d
60 Warning: range(): step exceeds the specified range in %s on line %d
65 Warning: range(): step exceeds the specified range in %s on line %d
78 Warning: range(): step exceeds the specified range in %s on line %d
81 Warning: range(): step exceeds the specified range in %s on line %d
85 Warning: range(): step exceeds the specified range in %s on line %d
[all …]
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));
18 var_dump(array_slice(range(1, 3), 0, $a));
19 var_dump(array_slice(range(1, 3), 0, $a));
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 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.phpt2 Test range() function
12 var_dump( range(1, 10) );
14 var_dump( range(10, 1) );
18 var_dump( range("1", "10") );
20 var_dump( range("10", "1") );
24 var_dump( range("a", "z") );
26 var_dump( range("z", "a") );
29 var_dump( range(5, 5) );
30 var_dump( range("q", "q") );
33 var_dump( range(5.1, 10.1) );
[all …]
H A Drange_bug71197.phpt2 Bug #71197 (range function produces another 2 segfaults with long integers)
5 range(PHP_INT_MIN, PHP_INT_MIN + 513, .01);
6 range(PHP_INT_MIN + 513, PHP_INT_MIN, .01);
H A Drange_bug71132.phpt2 Bug #71132 (range function produces 2 segfaults with long integers)
5 var_dump(count(range(PHP_INT_MIN + 513, PHP_INT_MIN)));
6 var_dump(count(range(PHP_INT_MIN, PHP_INT_MIN + 513)));
H A Drange_bug70239_0.phpt5 range(0, pow(2.0, 100000000));
9 Warning: range(): Invalid range supplied: start=0 end=inf in %srange_bug70239_0.php on line %d
H A Drange_bug70239_1.phpt5 range(pow(2.0, 100000000), pow(2.0, 100000000) + 1);
9 Warning: range(): Invalid range supplied: start=inf end=inf in %srange_bug70239_1.php on line %d
H A Dbug24220.phpt2 Bug #24220 (range() numeric string handling)
5 var_dump(range("2003", "2004"));
6 var_dump(range("a", "z"));
7 var_dump(range("1", "10"));
H A Drange_bug70239_2.phpt5 var_dump(range(0, PHP_INT_MAX));
9 Warning: range(): The supplied range exceeds the maximum array size: start=0 end=%d in %srange_bug7…
H A Drange_bug70239_3.phpt5 var_dump(range(PHP_INT_MIN, 0));
9 Warning: range(): The supplied range exceeds the maximum array size: start=-%d end=0 in %srange_bug…
H A Dusort_variation11.phpt10 $range = array(2, 4, 8, 16, 32, 64, 128);
12 foreach ($range as $r) {
13 $backup = $array = range(0, $r);
H A Dbug32021.phpt2 Bug #32021 (Crash caused by range('', 'z'))
5 $foo = range('', 'z');
/PHP-7.0/main/streams/
H A Dmmap.c27 php_stream_mmap_range range; in _php_stream_mmap_range() local
29 range.offset = offset; in _php_stream_mmap_range()
30 range.length = length; in _php_stream_mmap_range()
31 range.mode = mode; in _php_stream_mmap_range()
32 range.mapped = NULL; in _php_stream_mmap_range()
40 … == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_MAP_RANGE, &range)) { in _php_stream_mmap_range()
42 *mapped_len = range.length; in _php_stream_mmap_range()
44 return range.mapped; in _php_stream_mmap_range()
H A Dplain_wrapper.c696 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option()
697 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option()
699 if (range->length == 0 || range->length > data->sb.st_size) { in php_stdiop_set_option()
704 range->length = 0; in php_stdiop_set_option()
706 switch (range->mode) { in php_stdiop_set_option()
726 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
728 range->mapped = NULL; in php_stdiop_set_option()
788 if (range->length == 0 && range->offset > 0 && range->offset < size) { in php_stdiop_set_option()
789 range->length = size - range->offset; in php_stdiop_set_option()
791 if (range->length == 0 || range->length > size) { in php_stdiop_set_option()
[all …]
/PHP-7.0/ext/standard/tests/math/
H A Dmt_rand_basic.phpt84 PASSED: range min = 0 max = 2147483647
87 PASSED: range min = 10 max = 100
88 PASSED: range min = 100 max = 1000
89 PASSED: range min = 10 max = 19
91 PASSED: range min = 16 max = 65536
92 PASSED: range min = 256 max = 448
95 PASSED range min = 1 max = 100
96 PASSED range min = 0 max = 100
97 PASSED range min = 0 max = 100
98 PASSED range min = 10 max = 100
[all …]
H A Drand_basic.phpt85 PASSED: range min = 0 max = %i
88 PASSED: range min = 10 max = 100
89 PASSED: range min = 100 max = 1000
90 PASSED: range min = 10 max = 19
92 PASSED: range min = 16 max = 65536
93 PASSED: range min = 256 max = 448
96 PASSED range min = 1 max = 100
97 PASSED range min = 0 max = 100
98 PASSED range min = 0 max = 100
99 PASSED range min = 10 max = 100
[all …]
/PHP-7.0/ext/date/tests/
H A Dmktime-3.phpt19 echo "out of range\n";
31 Y: 69 - out of range
36 Y: 105 - out of range
37 Y: 1900 - out of range
38 Y: 1901 - out of range
46 Y: 69 - out of range
51 Y: 105 - out of range
52 Y: 1900 - out of range
53 Y: 1901 - out of range
H A Dgmdate_variation12.phpt2 Test gmdate() function : usage variation - Valid and invalid range of timestamp.
17 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n";
21 echo "\n-- Testing gmdate() function with less than the range of timestamp --\n";
24 echo "\n-- Testing gmdate() function with maximum range of timestamp --\n";
28 echo "\n-- Testing gmdate() function with greater than the range of timestamp --\n";
37 -- Testing gmdate\(\) function with minimum range of timestamp --
40 -- Testing gmdate\(\) function with less than the range of timestamp --
43 -- Testing gmdate\(\) function with maximum range of timestamp --
46 -- Testing gmdate\(\) function with greater than the range of timestamp --
/PHP-7.0/ext/standard/tests/url/
H A Dparse_url_error_002.phpt2 Test parse_url() function: url component specifier out of range
11 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n";
14 echo "--> Below range:";
17 echo "\n\n--> Above range:";
23 *** Testing parse_url() : error conditions: url component specifier out of range ***
24 --> Below range:array(8) {
44 --> Above range:
/PHP-7.0/ext/imap/tests/
H A Dimap_fetch_overview_variation2.phpt124 Sequence out of range
139 Sequence out of range
145 Sequence out of range
151 Sequence out of range
157 Sequence out of range
160 Sequence out of range
163 Sequence out of range
178 Sequence out of range
193 Sequence out of range
196 Sequence out of range
[all …]
/PHP-7.0/ext/filter/tests/
H A Dfilter_ipv4_rfc6890.phpt2 Bug #71745 FILTER_FLAG_NO_RES_RANGE does not cover whole 127.0.0.0/8 range
20 foreach ($privateRanges as $key => $range) {
21 list($min, $max) = $range;
74 foreach ($reserverdRanges as $key => $range) {
75 list($min, $max) = $range;
/PHP-7.0/ext/spl/tests/
H A Darray_014.phpt6 $it = new ArrayIterator(range(0,10));
46 Seek position -1 is out of range
47 Seek position 12 is out of range

Completed in 31 milliseconds

123456789