/PHP-5.3/ext/standard/tests/array/ |
H A D | max_variation2.phpt | 2 Test variations in usage of max() 12 var_dump(max(array(2,1,2))); 13 var_dump(max(array(-2,1,2))); 14 var_dump(max(array(2.1,2.11,2.09))); 15 var_dump(max(array("", "t", "b"))); 16 var_dump(max(array(false, true, false))); 17 var_dump(max(array(true, false, true))); 18 var_dump(max(array(1, true, false, true))); 19 var_dump(max(array(0, true, false, true))); 20 var_dump(max(array(0, 1, array(2,3)))); [all …]
|
H A D | max.phpt | 2 max() tests 8 var_dump(max()); 9 var_dump(max(1)); 10 var_dump(max(array())); 11 var_dump(max(new stdclass)); 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)); [all …]
|
H A D | max_basic.phpt | 2 Test return type and value for expected input max() 6 * proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]]) 12 var_dump(max(2,1,2)); 13 var_dump(max(-2,1,2)); 14 var_dump(max(2.1,2.11,2.09)); 15 var_dump(max("", "t", "b")); 16 var_dump(max(false, true, false)); 17 var_dump(max(true, false, true)); 18 var_dump(max(1, true, false, true)); 19 var_dump(max(0, true, false, true)); [all …]
|
H A D | max_variation1.phpt | 2 Test variations in usage of max() 6 * proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]]) 11 var_dump(max(2147483645, 2147483646) ); 12 var_dump(max(2147483647, 2147483648) ); 13 var_dump(max(2147483646, 2147483648) ); 14 var_dump(max(-2147483647, -2147483646) ); 15 var_dump(max(-2147483648, -2147483647) ); 16 var_dump(max(-2147483649, -2147483647) ); 20 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,…
|
H A D | max_error.phpt | 13 var_dump(max()); 14 var_dump(max(1)); 15 var_dump(max(array())); 16 var_dump(max(new stdclass)); 22 Warning: max() expects at least 1 parameter, 0 given in %s on line 10 25 Warning: max(): When only one parameter is given, it must be an array in %s on line 11 28 Warning: max(): Array must contain at least one element in %s on line 12 31 Warning: max(): When only one parameter is given, it must be an array in %s on line 13
|
H A D | max_basiclong_64bit.phpt | 2 Test max function : 64bit long tests 27 var_dump(max($arrayVals)); 28 var_dump(max($longVals));
|
H A D | array_push_error2.phpt | 2 Test array_push() function : error conditions - max int value as key 17 $array = array(PHP_INT_MAX => 'max'); 32 string(3) "max"
|
/PHP-5.3/ext/standard/tests/math/ |
H A D | mt_rand_basic.phpt | 32 $max = array(100, 44 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 89 PASSED: range min = 10 max = 100 91 PASSED: range min = 10 max = 19 97 PASSED range min = 1 max = 100 98 PASSED range min = 0 max = 100 99 PASSED range min = 0 max = 100 100 PASSED range min = 10 max = 100 101 PASSED range min = 0 max = 100 [all …]
|
H A D | rand_basic.phpt | 32 $max = array(100, 41 $res = rand($min[$x], $max[$x]); 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 87 PASSED: range min = 0 max = %i 92 PASSED: range min = 10 max = 19 98 PASSED range min = 1 max = 100 99 PASSED range min = 0 max = 100 100 PASSED range min = 0 max = 100 101 PASSED range min = 10 max = 100 102 PASSED range min = 0 max = 100 [all …]
|
/PHP-5.3/sapi/fpm/fpm/events/ |
H A D | devpoll.c | 35 static int fpm_event_devpoll_init(int max); 73 static int fpm_event_devpoll_init(int max) /* {{{ */ in fpm_event_devpoll_init() argument 84 if (max < 1) { in fpm_event_devpoll_init() 89 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 91 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_devpoll_init() 94 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 97 for (i = 0; i < max; i++) { in fpm_event_devpoll_init() 102 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init() 105 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_devpoll_init() 108 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init() [all …]
|
H A D | poll.c | 32 static int fpm_event_poll_init(int max); 72 static int fpm_event_poll_init(int max) /* {{{ */ in fpm_event_poll_init() argument 76 if (max < 1) { in fpm_event_poll_init() 81 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init() 83 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_poll_init() 86 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_poll_init() 89 for (i = 0; i < max; i++) { in fpm_event_poll_init() 94 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init() 97 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max); in fpm_event_poll_init() 100 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_poll_init() [all …]
|
H A D | epoll.c | 31 static int fpm_event_epoll_init(int max); 68 static int fpm_event_epoll_init(int max) /* {{{ */ in fpm_event_epoll_init() argument 70 if (max < 1) { in fpm_event_epoll_init() 75 epollfd = epoll_create(max + 1); in fpm_event_epoll_init() 82 epollfds = malloc(sizeof(struct epoll_event) * max); in fpm_event_epoll_init() 84 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max); in fpm_event_epoll_init() 87 memset(epollfds, 0, sizeof(struct epoll_event) * max); in fpm_event_epoll_init() 90 nepollfds = max; in fpm_event_epoll_init()
|
H A D | kqueue.c | 34 static int fpm_event_kqueue_init(int max); 74 static int fpm_event_kqueue_init(int max) /* {{{ */ in fpm_event_kqueue_init() argument 76 if (max < 1) { in fpm_event_kqueue_init() 86 kevents = malloc(sizeof(struct kevent) * max); in fpm_event_kqueue_init() 88 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max); in fpm_event_kqueue_init() 92 memset(kevents, 0, sizeof(struct kevent) * max); in fpm_event_kqueue_init() 94 nkevents = max; in fpm_event_kqueue_init()
|
H A D | port.c | 32 static int fpm_event_port_init(int max); 69 static int fpm_event_port_init(int max) /* {{{ */ in fpm_event_port_init() argument 78 if (max < 1) { in fpm_event_port_init() 83 events = malloc(sizeof(port_event_t) * max); in fpm_event_port_init() 85 zlog(ZLOG_ERROR, "port: Unable to allocate %d events", max); in fpm_event_port_init() 89 nevents = max; in fpm_event_port_init()
|
/PHP-5.3/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-5.3/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" => -0x80000000, // max negative integer as hexadecimal 26 "'0x7fffffff'" => '0x7fffffff', // max postive integer as hexadecimal 27 "0x7FFFFFFF" => 0x7FFFFFFF, // max postive integer as hexadecimal 30 "-020000000000" => -020000000000, // max negative integer as octal 31 "017777777777" => 017777777777, // max positive integer as octal
|
H A D | strval.phpt | 35 -2147483648, // max negative integer value 37 2147483647, // max positive integer value 45 -0x80000000, // max negative integer as hexadecimal 46 0x7fffffff, // max postive integer as hexadecimal 47 0x7FFFFFFF, // max postive integer as hexadecimal 50 -020000000000, // max negative integer as octal 51 017777777777, // max positive integer as octal 54 -0x80000001, // float value, beyond max negative int 55 0x800000001, // float value, beyond max positive int 56 020000000001, // float value, beyond max positive int [all …]
|
H A D | intval.phpt | 19 '-2147483648', // max negative integer value 21 2147483647, // max positive integer value 27 -0x80000000, // max negative integer as hexadecimal 28 '0x7fffffff', // max postive integer as hexadecimal 29 0x7FFFFFFF, // max postive integer as hexadecimal 32 -020000000000, // max negative integer as octal 33 017777777777, // max positive integer as octal 79 '-0x80000001', // float value, beyond max negative int 80 '0x800000001', // float value, beyond max positive int 81 '020000000001', // float value, beyond max positive int [all …]
|
H A D | bug46587.phpt | 2 Bug #46587 (mt_rand() does not check that max is greater than min). 14 Warning: mt_rand(): max(3) is smaller than min(8) in %s on line %d
|
/PHP-5.3/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-5.3/ext/standard/ |
H A D | rand.c | 293 long max; in PHP_FUNCTION() local 297 if (argc != 0 && zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max) == FAILURE) in PHP_FUNCTION() 302 RAND_RANGE(number, min, max, PHP_RAND_MAX); in PHP_FUNCTION() 314 long max; in PHP_FUNCTION() local 319 if (zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max) == FAILURE) { in PHP_FUNCTION() 321 } else if (max < min) { in PHP_FUNCTION() 322 php_error_docref(NULL TSRMLS_CC, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min); in PHP_FUNCTION() 341 RAND_RANGE(number, min, max, PHP_MT_RAND_MAX); in PHP_FUNCTION()
|
/PHP-5.3/Zend/ |
H A D | zend_ptr_stack.h | 26 int top, max; member 47 if (stack->top+count > stack->max) { \ in END_EXTERN_C() 49 stack->max *= 2; \ in END_EXTERN_C() 50 stack->max += count; \ in END_EXTERN_C() 51 …stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->per… in END_EXTERN_C()
|
/PHP-5.3/ext/standard/tests/file/ |
H A D | fread_variation2.phpt | 118 -- Reading file content less than max. file size, expeceted : 0 bytes -- 133 -- Reading file content less than max. file size, expeceted : 0 bytes -- 148 -- Reading file content less than max. file size, expeceted : 0 bytes -- 163 -- Reading file content less than max. file size, expeceted : 0 bytes -- 178 -- Reading file content less than max. file size, expeceted : 0 bytes -- 193 -- Reading file content less than max. file size, expeceted : 0 bytes -- 208 -- Reading file content less than max. file size, expeceted : 0 bytes -- 223 -- Reading file content less than max. file size, expeceted : 0 bytes -- 238 -- Reading file content less than max. file size, expeceted : 0 bytes -- 255 -- Reading file content less than max. file size, expeceted : 0 bytes -- [all …]
|
H A D | fread_variation1.phpt | 119 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 134 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 149 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 164 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 179 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 194 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 209 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 224 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 239 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 256 -- Reading file content less than max. file size, expeceted : 1000 bytes -- [all …]
|
/PHP-5.3/ext/pcre/pcrelib/ |
H A D | pcre_exec.c | 57 #undef max 633 int max; in match() 2692 if (max == 0) max = INT_MAX; in match() 2700 if (max == 0) max = INT_MAX; in match() 2832 if (max == 0) max = INT_MAX; in match() 2840 if (max == 0) max = INT_MAX; in match() 3046 if (max == 0) max = INT_MAX; in match() 3054 if (max == 0) max = INT_MAX; in match() 3296 if (max == 0) max = INT_MAX; in match() 3681 if (max == 0) max = INT_MAX; in match() [all …]
|