Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 120) sorted by relevance

12345

/PHP-8.0/ext/standard/tests/math/
H A Dmt_rand_basic.phpt25 $min = array(10,
50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
55 $min = array(true,
78 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
87 PASSED: range min = 10 max = 100
89 PASSED: range min = 10 max = 19
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.phpt25 $min = array(10,
50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
55 $min = array(true,
78 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
84 PASSED: range min = 0 max = %i
89 PASSED: range min = 10 max = 19
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 Dallowed_rounding_error.inc8 $min = $expected - $small_number;
11 if ($number < $max && $number > $min ) {
/PHP-8.0/ext/standard/tests/array/
H A Dmin_variation2.phpt2 Test variations in usage of min()
11 var_dump(min(array(2,1,2)));
12 var_dump(min(array(-2,1,2)));
13 var_dump(min(array(2.1,2.11,2.09)));
14 var_dump(min(array("", "t", "b")));
15 var_dump(min(array(false, true, false)));
16 var_dump(min(array(true, false, true)));
17 var_dump(min(array(1, true, false, true)));
18 var_dump(min(array(0, true, false, true)));
19 var_dump(min(array(0, 1, array(2,3))));
[all …]
H A Dmin.phpt2 min() tests
9 var_dump(min(1));
15 var_dump(min(array()));
21 var_dump(min(new stdclass));
26 var_dump(min(2,1,2));
27 var_dump(min(2.1,2.11,2.09));
28 var_dump(min("", "t", "b"));
29 var_dump(min(false, true, false));
30 var_dump(min(true, false, true));
31 var_dump(min(1, true, false, true));
[all …]
H A Dmin_basic.phpt2 Test return type and value for expected input min()
11 var_dump(min(2,1,2));
12 var_dump(min(-2,1,2));
13 var_dump(min(2.1,2.11,2.09));
14 var_dump(min("", "t", "b"));
15 var_dump(min(false, true, false));
16 var_dump(min(true, false, true));
17 var_dump(min(1, true, false, true));
18 var_dump(min(0, true, false, true));
19 var_dump(min(0, 1, array(2,3)));
H A Dmin_variation1.phpt2 Test variations in usage of min()
10 var_dump(min(2147483645, 2147483646) );
11 var_dump(min(2147483647, 2147483648) );
12 var_dump(min(2147483646, 2147483648) );
13 var_dump(min(-2147483647, -2147483646) );
14 var_dump(min(-2147483648, -2147483647) );
15 var_dump(min(-2147483649, -2147483647) );
19 var_dump(min(0, 1 , 2, 3, 4, 5, 6, 7, 8, 9, 0, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,0, 1 , 2,…
H A Darray_walk_recursive_variation8.phpt8 * min function
19 echo "-- With 'min' built-in function --\n";
20 var_dump( array_walk_recursive($input, "min"));
35 -- With 'min' built-in function --
H A Darray_walk_variation8.phpt8 * min function
19 echo "-- With 'min' built-in function --\n";
20 var_dump( array_walk($input, "min"));
35 -- With 'min' built-in function --
H A Dmin_basiclong_64bit.phpt2 Test min function : 64bit long tests
27 var_dump(min($arrayVals));
28 var_dump(min($longVals));
/PHP-8.0/ext/standard/
H A Drand.c46 zend_long min; in PHP_FUNCTION() local
55 Z_PARAM_LONG(min) in PHP_FUNCTION()
59 if (max < min) { in PHP_FUNCTION()
60 RETURN_LONG(php_mt_rand_common(max, min)); in PHP_FUNCTION()
63 RETURN_LONG(php_mt_rand_common(min, max)); in PHP_FUNCTION()
H A Dphp_random.h32 #define php_random_int_throw(min, max, result) \ argument
33 php_random_int((min), (max), (result), 1)
34 #define php_random_int_silent(min, max, result) \ argument
35 php_random_int((min), (max), (result), 0)
38 PHPAPI int php_random_int(zend_long min, zend_long max, zend_long *result, zend_bool should_throw);
H A Dmt_rand.c270 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max) in php_mt_rand_range() argument
272 zend_ulong umax = max - min; in php_mt_rand_range()
276 return (zend_long) (rand_range64(umax) + min); in php_mt_rand_range()
280 return (zend_long) (rand_range32(umax) + min); in php_mt_rand_range()
286 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max) in php_mt_rand_common() argument
291 return php_mt_rand_range(min, max); in php_mt_rand_common()
297 RAND_RANGE_BADSCALING(n, min, max, PHP_MT_RAND_MAX); in php_mt_rand_common()
306 zend_long min; in PHP_FUNCTION() local
316 Z_PARAM_LONG(min) in PHP_FUNCTION()
320 if (UNEXPECTED(max < min)) { in PHP_FUNCTION()
[all …]
H A Drandom.c242 PHPAPI int php_random_int(zend_long min, zend_long max, zend_long *result, zend_bool should_throw) in php_random_int() argument
247 if (min == max) { in php_random_int()
248 *result = min; in php_random_int()
252 umax = (zend_ulong) max - (zend_ulong) min; in php_random_int()
280 *result = (zend_long)((trial % umax) + min); in php_random_int()
288 zend_long min; in PHP_FUNCTION() local
293 Z_PARAM_LONG(min) in PHP_FUNCTION()
297 if (min > max) { in PHP_FUNCTION()
302 if (php_random_int_throw(min, max, &result) == FAILURE) { in PHP_FUNCTION()
H A Dphp_mt_rand.h35 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max);
36 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max);
/PHP-8.0/ext/filter/tests/
H A D046.phpt10 $min = "-2147483648";
15 $min = "-9223372036854775808";
34 test_validation($min, "min");
44 min filtered: int(-%d)
45 min is_long: bool(true)
46 min equal: bool(true)
H A Dfilter_ipv4_rfc6890.phpt23 list($min, $max) = $range;
25 var_dump(filter_var($min, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE));
77 list($min, $max) = $range;
79 var_dump(filter_var($min, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE));
/PHP-8.0/ext/date/tests/
H A Dgmmktime_variation9_64bits.phpt13 $min = 8;
26 // loop through each element of the array for min
29 var_dump( gmmktime($value, $min, $sec, $mon, $day, $year) );
31 var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) );
32 var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) );
33 var_dump( gmmktime($hour, $min, $sec, $mon, $value, $value) );
H A Dgmmktime_variation7.phpt9 $min = 8;
18 var_dump( gmmktime($hour, $min) );
21 var_dump( gmmktime($hour, $min, $sec) );
24 var_dump( gmmktime($hour, $min, $sec, $mon) );
27 var_dump( gmmktime($hour, $min, $sec, $mon, $day) );
H A Dgmmktime_variation9.phpt13 $min = 8;
26 // loop through each element of the array for min
29 var_dump( gmmktime($value, $min, $sec, $mon, $day, $year) );
31 var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) );
32 var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) );
33 var_dump( gmmktime($hour, $min, $sec, $mon, $value, $value) );
H A Dgmmktime_variation8.phpt9 $min = 010;
16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
20 $min = 0x8;
27 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
H A Dgmmktime_basic.phpt9 $min = 8;
16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
/PHP-8.0/ext/standard/tests/general_functions/
H A Dbug76717.phpt6 $min = eval('return '.var_export(PHP_INT_MIN, true).';');
8 var_dump($min === PHP_INT_MIN);
H A Dbug46587.phpt2 Bug #46587 (mt_rand() does not check that max is greater than min).
17 mt_rand(): Argument #2 ($max) must be greater than or equal to argument #1 ($min)
/PHP-8.0/ext/opcache/Optimizer/
H A Dzend_inference.c904 tmp->min = MAX(constraint->range.min, tmp->min); in zend_inference_calc_range()
909 …tmp->min = MAX(ssa->var_info[constraint->min_ssa_var].range.min + constraint->range.min, tmp->min); in zend_inference_calc_range()
927 tmp->min = constraint->range.min; in zend_inference_calc_range()
966 tmp->min = MIN(tmp->min, ssa->var_info[p->sources[i]].range.min); in zend_inference_calc_range()
1355 ssa->var_info[var].range.min = min; in zend_inference_init_range()
1368 r->min < var_info->range.min) { in zend_inference_widening_meet()
1378 if (var_info->range.min == r->min && in zend_inference_widening_meet()
1409 var_info->range.min < r->min) { in zend_inference_narrowing_meet()
1410 r->min = var_info->range.min; in zend_inference_narrowing_meet()
1423 if (var_info->range.min == r->min && in zend_inference_narrowing_meet()
[all …]

Completed in 106 milliseconds

12345