/PHP-8.0/ext/standard/tests/array/ |
H A D | max_variation2.phpt | 2 Test variations in usage of max() 11 var_dump(max(array(2,1,2))); 12 var_dump(max(array(-2,1,2))); 13 var_dump(max(array(2.1,2.11,2.09))); 14 var_dump(max(array("", "t", "b"))); 15 var_dump(max(array(false, true, false))); 16 var_dump(max(array(true, false, true))); 17 var_dump(max(array(1, true, false, true))); 18 var_dump(max(array(0, true, false, true))); 19 var_dump(max(array(0, 1, array(2,3)))); [all …]
|
H A D | max.phpt | 2 max() tests 9 var_dump(max(1)); 15 var_dump(max(array())); 21 var_dump(max(new stdclass)); 26 var_dump(max(2,1,2)); 27 var_dump(max(2.1,2.11,2.09)); 28 var_dump(max("", "t", "b")); 29 var_dump(max(false, true, false)); 30 var_dump(max(true, false, true)); 31 var_dump(max(1, true, false, true)); [all …]
|
H A D | max_basic.phpt | 2 Test return type and value for expected input max() 11 var_dump(max(2,1,2)); 12 var_dump(max(-2,1,2)); 13 var_dump(max(2.1,2.11,2.09)); 14 var_dump(max("", "t", "b")); 15 var_dump(max(false, true, false)); 16 var_dump(max(true, false, true)); 17 var_dump(max(1, true, false, true)); 18 var_dump(max(0, true, false, true)); 19 var_dump(max(0, 1, array(2,3)));
|
H A D | max_variation1.phpt | 2 Test variations in usage of max() 10 var_dump(max(2147483645, 2147483646) ); 11 var_dump(max(2147483647, 2147483648) ); 12 var_dump(max(2147483646, 2147483648) ); 13 var_dump(max(-2147483647, -2147483646) ); 14 var_dump(max(-2147483648, -2147483647) ); 15 var_dump(max(-2147483649, -2147483647) ); 19 var_dump(max(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,…
|
/PHP-8.0/ext/standard/tests/math/ |
H A D | mt_rand_basic.phpt | 32 $max = array(100, 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 87 PASSED: range min = 10 max = 100 88 PASSED: range min = 100 max = 1000 89 PASSED: range min = 10 max = 19 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 D | rand_basic.phpt | 32 $max = array(100, 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 84 PASSED: range min = 0 max = %i 87 PASSED: range min = 10 max = 100 89 PASSED: range min = 10 max = 19 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 D | bug75170.phpt | 11 $max = 0x66666666; 14 $halves[(mt_rand(0, $max - 1) >> 1) & 1]++; 22 $max = 0x66666666; 25 $halves[mt_rand(0, $max - 1) / ($max / 2)]++;
|
/PHP-8.0/ext/standard/ |
H A D | rand.c | 47 zend_long max; in PHP_FUNCTION() local 56 Z_PARAM_LONG(max) 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, zend_bool should_throw);
|
H A D | mt_rand.c | 270 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() 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() 307 zend_long max; in PHP_FUNCTION() local 317 Z_PARAM_LONG(max) in PHP_FUNCTION() 320 if (UNEXPECTED(max < min)) { in PHP_FUNCTION() 325 RETURN_LONG(php_mt_rand_common(min, max)); in PHP_FUNCTION()
|
/PHP-8.0/sapi/fpm/fpm/events/ |
H A D | devpoll.c | 31 static int fpm_event_devpoll_init(int max); 68 static int fpm_event_devpoll_init(int max) /* {{{ */ in fpm_event_devpoll_init() argument 79 if (max < 1) { in fpm_event_devpoll_init() 84 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 86 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_devpoll_init() 89 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 92 for (i = 0; i < max; i++) { in fpm_event_devpoll_init() 97 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 100 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_devpoll_init() 103 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init() [all …]
|
H A D | poll.c | 28 static int fpm_event_poll_init(int max); 67 static int fpm_event_poll_init(int max) in fpm_event_poll_init() argument 71 if (max < 1) { in fpm_event_poll_init() 76 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init() 78 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_poll_init() 81 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_poll_init() 84 for (i = 0; i < max; i++) { in fpm_event_poll_init() 89 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init() 92 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_poll_init() 95 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_poll_init() [all …]
|
H A D | epoll.c | 27 static int fpm_event_epoll_init(int max); 63 static int fpm_event_epoll_init(int max) /* {{{ */ in fpm_event_epoll_init() argument 65 if (max < 1) { in fpm_event_epoll_init() 70 epollfd = epoll_create(max + 1); in fpm_event_epoll_init() 77 epollfds = malloc(sizeof(struct epoll_event) * max); in fpm_event_epoll_init() 79 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max); in fpm_event_epoll_init() 82 memset(epollfds, 0, sizeof(struct epoll_event) * max); in fpm_event_epoll_init() 85 nepollfds = max; in fpm_event_epoll_init()
|
H A D | kqueue.c | 30 static int fpm_event_kqueue_init(int max); 70 static int fpm_event_kqueue_init(int max) /* {{{ */ in fpm_event_kqueue_init() argument 72 if (max < 1) { in fpm_event_kqueue_init() 82 kevents = malloc(sizeof(struct kevent) * max); in fpm_event_kqueue_init() 84 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max); in fpm_event_kqueue_init() 88 memset(kevents, 0, sizeof(struct kevent) * max); in fpm_event_kqueue_init() 90 nkevents = max; in fpm_event_kqueue_init()
|
H A D | port.c | 28 static int fpm_event_port_init(int max); 65 static int fpm_event_port_init(int max) /* {{{ */ in fpm_event_port_init() argument 74 if (max < 1) { in fpm_event_port_init() 79 events = malloc(sizeof(port_event_t) * max); in fpm_event_port_init() 81 zlog(ZLOG_ERROR, "port: Unable to allocate %d events", max); in fpm_event_port_init() 85 nevents = max; in fpm_event_port_init()
|
/PHP-8.0/ext/filter/tests/ |
H A D | 046.phpt | 7 $max = sprintf("%d", PHP_INT_MAX); 8 switch($max) { 32 test_validation($max, "max"); 38 max filtered: int(%d) 39 max is_long: bool(true) 40 max equal: bool(true)
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | var_export_basic1.phpt | 17 '-2147483648' => '-2147483648', // max negative integer value 19 '2147483647' => 2147483647, // max positive integer value 25 "-0x80000000" => -0x7FFFFFFF - 1, // max negative integer as hexadecimal 26 "'0x7fffffff'" => '0x7fffffff', // max positive integer as hexadecimal 27 "0x7FFFFFFF" => 0x7FFFFFFF, // max positive integer as hexadecimal 30 "-020000000000" => -017777777777 - 1, // max negative integer as octal 31 "017777777777" => 017777777777, // max positive integer as octal
|
H A D | var_export_basic1_32.phpt | 17 '-2147483648' => '-2147483648', // max negative integer value 19 '2147483647' => 2147483647, // max positive integer value 25 "-0x80000000" => -0x7FFFFFFF - 1, // max negative integer as hexadecimal 26 "'0x7fffffff'" => '0x7fffffff', // max positive integer as hexadecimal 27 "0x7FFFFFFF" => 0x7FFFFFFF, // max positive integer as hexadecimal 30 "-020000000000" => -017777777777 - 1, // max negative integer as octal 31 "017777777777" => 017777777777, // max positive integer as octal
|
H A D | intval.phpt | 15 '-2147483648', // max negative integer value 17 2147483647, // max positive integer value 23 -0x80000000, // max negative integer as hexadecimal 24 '0x7fffffff', // max positive integer as hexadecimal 25 0x7FFFFFFF, // max positive integer as hexadecimal 28 -020000000000, // max negative integer as octal 29 017777777777, // max positive integer as octal 75 '-0x80000001', // float value, beyond max negative int 76 '0x800000001', // float value, beyond max positive int 77 '020000000001', // float value, beyond max positive int [all …]
|
/PHP-8.0/ext/date/tests/ |
H A D | format-negative-timestamp.phpt | 8 $max = getrandmax(); 9 $max_2 = $max / 2; 12 $new_tm = rand(1, $max);
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | optimize_temp_vars_5.c | 38 if (i > max) { \ 39 max = i; \ 54 int max = -1; in zend_optimize_temporary_variables() local 87 var = max; in zend_optimize_temporary_variables() 91 max = MAX(max, var + num); in zend_optimize_temporary_variables() 130 i = ++max; in zend_optimize_temporary_variables() 186 op_array->T = max + 1; in zend_optimize_temporary_variables()
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | sprintf_variation28.phpt | 18 -2147483648, // max negative integer value 20 2147483647, // max positive integer value 26 -0x80000000, // max negative integer as hexadecimal 27 0x7fffffff, // max positive integer as hexadecimal 28 0x7FFFFFFF, // max positive integer as hexadecimal 31 -020000000000, // max negative integer as octal 32 017777777777 // max positive integer as octal
|
H A D | sprintf_variation28_64bit.phpt | 14 -2147483648, // max negative integer value 16 2147483647, // max positive integer value 22 -0x80000000, // max negative integer as hexadecimal 23 0x7fffffff, // max positive integer as hexadecimal 24 0x7FFFFFFF, // max positive integer as hexadecimal 27 -020000000000, // max negative integer as octal 28 017777777777 // max positive integer as octal
|
H A D | sprintf_variation3.phpt | 12 -2147483648, // max negative integer value 14 2147483647, // max positive integer value 20 -0x80000000, // max negative integer as hexadecimal 21 0x7fffffff, // max positive integer as hexadecimal 22 0x7FFFFFFF, // max positive integer as hexadecimal 25 -020000000000, // max negative integer as octal 26 017777777777 // max positive integer as octal
|
H A D | sprintf_variation40.phpt | 18 -2147483648, // max negative integer value 20 2147483647, // max positive integer value 26 -0x80000000, // max negative integer as hexadecimal 27 0x7fffffff, // max positive integer as hexadecimal 28 0x7FFFFFFF, // max positive integer as hexadecimal 31 -020000000000, // max negative integer as octal 32 017777777777 // max positive integer as octal
|