Home
last modified time | relevance | path

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

123456

/PHP-8.2/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.2/ext/random/tests/01_functions/
H A Dmt_rand_basic.phpt25 $min = array(10,
37 for ($x = 0; $x < count($min); $x++) {
39 $res = mt_rand($min[$x], $max[$x]);
42 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\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
[all …]
H A Drand_basic.phpt25 $min = array(10,
37 for ($x = 0; $x < count($min); $x++) {
39 $res = rand($min[$x], $max[$x]);
42 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\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
[all …]
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.2/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.2/ext/random/
H A Drandom.c631 if (min == max) {
632 *result = min;
712 zend_long min, max; local
721 Z_PARAM_LONG(min)
725 if (UNEXPECTED(max < min)) {
750 zend_long min, max; local
759 Z_PARAM_LONG(min)
763 if (max < min) {
802 zend_long min, max, result; local
805 Z_PARAM_LONG(min)
[all …]
H A Drandom.stub.php24 function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {} argument
26 function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {} argument
36 function random_int(int $min, int $max): int {} argument
136 public function getInt(int $min, int $max): int {} argument
H A Dengine_secure.c36 static zend_long range(php_random_status *status, zend_long min, zend_long max) in range() argument
40 php_random_int_throw(min, max, &result); in range()
H A Dphp_random.h81 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max);
82 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max);
198 # define php_random_int_throw(min, max, result) php_random_int((min), (max), (result), 1) argument
199 # define php_random_int_silent(min, max, result) php_random_int((min), (max), (result), 0) argument
202 PHPAPI int php_random_int(zend_long min, zend_long max, zend_long *result, bool should_throw);
237 zend_long (*range)(php_random_status *status, zend_long min, zend_long max);
293 …random_range(const php_random_algo *algo, php_random_status *status, zend_long min, zend_long max);
H A Dengine_user.c61 static zend_long range(php_random_status *status, zend_long min, zend_long max) in range() argument
63 return php_random_range(&php_random_algo_user, status, min, max); in range()
/PHP-8.2/ext/date/tests/
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_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.2/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);
/PHP-8.2/ext/standard/tests/math/
H A Dallowed_rounding_error.inc8 $min = $expected - $small_number;
11 if ($number < $max && $number > $min ) {
/PHP-8.2/Zend/Optimizer/
H A Dzend_inference.c1178 tmp->min = MAX(constraint->range.min, tmp->min); in zend_inference_calc_range()
1183 …tmp->min = MAX(ssa->var_info[constraint->min_ssa_var].range.min + constraint->range.min, tmp->min); in zend_inference_calc_range()
1201 tmp->min = constraint->range.min; in zend_inference_calc_range()
1240 tmp->min = MIN(tmp->min, ssa->var_info[p->sources[i]].range.min); in zend_inference_calc_range()
1620 ssa->var_info[var].range.min = min; in zend_inference_init_range()
1633 r->min < var_info->range.min) { in zend_inference_widening_meet()
1643 if (var_info->range.min == r->min && in zend_inference_widening_meet()
1674 var_info->range.min < r->min) { in zend_inference_narrowing_meet()
1675 r->min = var_info->range.min; in zend_inference_narrowing_meet()
1688 if (var_info->range.min == r->min && in zend_inference_narrowing_meet()
[all …]
/PHP-8.2/ext/date/lib/
H A Dtimelib.c188 void timelib_decimal_hour_to_hms(double h, int *hour, int *min, int *sec) in timelib_decimal_hour_to_hms() argument
201 *min = seconds / 60; in timelib_decimal_hour_to_hms()
209 void timelib_hms_to_decimal_hour(int hour, int min, int sec, double *h) in timelib_hms_to_decimal_hour() argument
212 *h = ((double)hour + (double)min / 60 + (double)sec / 3600); in timelib_hms_to_decimal_hour()
214 *h = ((double)hour - (double)min / 60 - (double)sec / 3600); in timelib_hms_to_decimal_hour()
218 void timelib_hmsf_to_decimal_hour(int hour, int min, int sec, int us, double *h) in timelib_hmsf_to_decimal_hour() argument
221 …*h = ((double)hour + (double)min / MINS_PER_HOUR + (double)sec / SECS_PER_HOUR) + (double)us / USE… in timelib_hmsf_to_decimal_hour()
223 …*h = ((double)hour - (double)min / MINS_PER_HOUR - (double)sec / SECS_PER_HOUR) - (double)us / USE… in timelib_hmsf_to_decimal_hour()
/PHP-8.2/ext/gmp/tests/
H A Dgmp_random_range.phpt77 gmp_random_range(): Argument #1 ($min) must be less than argument #2 ($maximum)
78 gmp_random_range(): Argument #1 ($min) must be less than argument #2 ($maximum)
79 gmp_random_range(): Argument #1 ($min) must be less than argument #2 ($maximum)

Completed in 32 milliseconds

123456