/PHP-8.2/ext/standard/tests/array/ |
H A D | min_variation2.phpt | 2 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 D | min.phpt | 2 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 D | min_basic.phpt | 2 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 D | min_variation1.phpt | 2 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 D | array_walk_recursive_variation8.phpt | 8 * 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 D | array_walk_variation8.phpt | 8 * 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 D | min_basiclong_64bit.phpt | 2 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 D | mt_rand_basic.phpt | 25 $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 D | rand_basic.phpt | 25 $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 D | bug46587.phpt | 2 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 D | 046.phpt | 10 $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 D | filter_ipv4_rfc6890.phpt | 23 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 D | random.c | 631 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 D | random.stub.php | 24 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 D | engine_secure.c | 36 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 D | php_random.h | 81 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 D | engine_user.c | 61 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 D | gmmktime_variation7.phpt | 9 $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 D | gmmktime_variation8.phpt | 9 $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 D | gmmktime_basic.phpt | 9 $min = 8; 16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | bug76717.phpt | 6 $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 D | allowed_rounding_error.inc | 8 $min = $expected - $small_number; 11 if ($number < $max && $number > $min ) {
|
/PHP-8.2/Zend/Optimizer/ |
H A D | zend_inference.c | 1178 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 D | timelib.c | 188 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 D | gmp_random_range.phpt | 77 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)
|