/PHP-8.1/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.1/ext/standard/tests/math/ |
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 | 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 | allowed_rounding_error.inc | 8 $min = $expected - $small_number; 11 if ($number < $max && $number > $min ) {
|
/PHP-8.1/ext/standard/ |
H A D | rand.c | 46 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 D | php_random.h | 32 #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, bool should_throw);
|
H A D | mt_rand.c | 278 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max) in php_mt_rand_range() argument 280 zend_ulong umax = max - min; in php_mt_rand_range() 284 return (zend_long) (rand_range64(umax) + min); in php_mt_rand_range() 288 return (zend_long) (rand_range32(umax) + min); in php_mt_rand_range() 294 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max) in php_mt_rand_common() argument 299 return php_mt_rand_range(min, max); in php_mt_rand_common() 305 RAND_RANGE_BADSCALING(n, min, max, PHP_MT_RAND_MAX); in php_mt_rand_common() 314 zend_long min; in PHP_FUNCTION() local 324 Z_PARAM_LONG(min) in PHP_FUNCTION() 328 if (UNEXPECTED(max < min)) { in PHP_FUNCTION() [all …]
|
H A D | random.c | 242 PHPAPI int php_random_int(zend_long min, zend_long max, zend_long *result, 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 D | php_mt_rand.h | 35 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.1/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.1/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.1/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 192 *min = floor((h - *hour) * 60); in timelib_decimal_hour_to_hms() 193 *sec = (h - *hour - ((float) *min / 60)) * 3600; in timelib_decimal_hour_to_hms() 196 *min = 0 - ceil((h - *hour) * 60); in timelib_decimal_hour_to_hms() 197 *sec = 0 - (h - *hour - ((float) *min / -60)) * 3600; in timelib_decimal_hour_to_hms() 201 void timelib_hms_to_decimal_hour(int hour, int min, int sec, double *h) in timelib_hms_to_decimal_hour() argument 204 *h = ((double)hour + (double)min / 60 + (double)sec / 3600); in timelib_hms_to_decimal_hour() 206 *h = ((double)hour - (double)min / 60 - (double)sec / 3600); in timelib_hms_to_decimal_hour() 210 void timelib_hmsf_to_decimal_hour(int hour, int min, int sec, int us, double *h) in timelib_hmsf_to_decimal_hour() argument 213 …*h = ((double)hour + (double)min / MINS_PER_HOUR + (double)sec / SECS_PER_HOUR) + (double)us / USE… in timelib_hmsf_to_decimal_hour() [all …]
|
/PHP-8.1/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);
|
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.1/Zend/Optimizer/ |
H A D | zend_inference.c | 1182 tmp->min = MAX(constraint->range.min, tmp->min); in zend_inference_calc_range() 1187 …tmp->min = MAX(ssa->var_info[constraint->min_ssa_var].range.min + constraint->range.min, tmp->min); in zend_inference_calc_range() 1205 tmp->min = constraint->range.min; in zend_inference_calc_range() 1244 tmp->min = MIN(tmp->min, ssa->var_info[p->sources[i]].range.min); in zend_inference_calc_range() 1633 ssa->var_info[var].range.min = min; in zend_inference_init_range() 1646 r->min < var_info->range.min) { in zend_inference_widening_meet() 1656 if (var_info->range.min == r->min && in zend_inference_widening_meet() 1687 var_info->range.min < r->min) { in zend_inference_narrowing_meet() 1688 r->min = var_info->range.min; in zend_inference_narrowing_meet() 1701 if (var_info->range.min == r->min && in zend_inference_narrowing_meet() [all …]
|
/PHP-8.1/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)
|