Searched defs:max (Results 1 - 25 of 36) sorted by relevance

12

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_children.c365 int max; local
370 max = wp->config->pm_start_servers;
372 max = wp->running_children + nb_to_spawn;
376 max = 0; /* do not create any child at startup */
378 max = wp->running_children + nb_to_spawn;
381 max = wp->config->pm_max_children;
387 * - wp->running_children < max : there is less than the max process for the current pool
391 while (fpm_pctl_can_spawn_children() && wp->running_children < max && (fpm_global_config.process_max < 1 || fpm_globals.running_children < fpm_global_config.process_max)) {
428 zlog(ZLOG_WARNING, "The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'");
[all...]
H A Dfpm_events.c311 int max; local
323 /* count the max number of necessary fds for polling */
324 max = 1; /* only one FD is necessary at startup for the master process signal pipe */
328 max += (wp->config->pm_max_children * 2);
332 if (module->init(max) < 0) {
337 zlog(ZLOG_DEBUG, "event module is %s and %d fds have been reserved", module->name, max);
/PHP_TRUNK/ext/oci8/
H A Doci8_collection.c262 Return max number of elements in the collection */
263 int php_oci_collection_max(php_oci_collection *collection, zend_long *max) argument
267 PHP_OCI_CALL_RETURN(*max, OCICollMax, (connection->env, collection->collection));
H A Doci8_interface.c2380 Return the max value of a collection. For a varray this is the maximum length of the array */
2385 zend_long max; local
2400 if (php_oci_collection_max(collection, &max)) {
2403 RETURN_LONG(max);
/PHP_TRUNK/Zend/
H A Dzend_ptr_stack.h26 int top, max; member in struct:_zend_ptr_stack
47 if (stack->top+count > stack->max) { \
50 stack->max += PTR_STACK_BLOCK_SIZE; \
51 } while (stack->top+count > stack->max); \
52 stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
H A Dzend_stack.h26 int size, top, max; member in struct:_zend_stack
/PHP_TRUNK/ext/standard/
H A Drand.c287 /* {{{ proto int rand([int min, int max])
292 zend_long max; local
296 if (argc != 0 && zend_parse_parameters(argc, "ll", &min, &max) == FAILURE)
301 RAND_RANGE(number, min, max, PHP_RAND_MAX);
308 /* {{{ proto int mt_rand([int min, int max])
313 zend_long max; local
318 if (zend_parse_parameters(argc, "ll", &min, &max) == FAILURE) {
320 } else if (max < min) {
321 php_error_docref(NULL, E_WARNING, "max(" ZEND_LONG_FMT ") is smaller than min(" ZEND_LONG_FMT ")", max, mi
[all...]
H A Drandom.c152 /* {{{ proto int random_int(int min, int max)
157 zend_long max; local
161 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll", &min, &max) == FAILURE) {
165 if (min >= max) {
170 umax = max - min;
181 /* Increment the max so the range is inclusive of max */
186 /* Ceiling under which ZEND_LONG_MAX % max == 0 */
H A Dvar_unserializer.c322 #define UNSERIALIZE_PARAMETER zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash, HashTable *classes
323 #define UNSERIALIZE_PASSTHRU rval, p, max, var_hash, classes
333 if (!php_var_unserialize_ex(&key, p, max, NULL, classes)) {
391 if (!php_var_unserialize_ex(data, p, max, var_hash, classes)) {
425 if (datalen < 0 || (max - (*p)) <= datalen) {
426 zend_error(E_WARNING, "Insufficient data for unserializing - %pd required, %pd present", datalen, (zend_long)(max - (*p)));
501 PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash) argument
513 limit = max;
689 maxlen = max - YYCURSOR;
915 maxlen = max
[all...]
H A Dphp_array.h51 PHP_FUNCTION(max); variable
/PHP_TRUNK/sapi/fpm/fpm/events/
H A Ddevpoll.c35 static int fpm_event_devpoll_init(int max);
73 static int fpm_event_devpoll_init(int max) /* {{{ */ argument
84 if (max < 1) {
89 pollfds = malloc(sizeof(struct pollfd) * max);
91 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max);
94 memset(pollfds, 0, sizeof(struct pollfd) * max);
97 for (i = 0; i < max; i++) {
102 active_pollfds = malloc(sizeof(struct pollfd) * max);
105 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max);
108 memset(active_pollfds, 0, sizeof(struct pollfd) * max);
[all...]
H A Dkqueue.c34 static int fpm_event_kqueue_init(int max);
74 static int fpm_event_kqueue_init(int max) /* {{{ */ argument
76 if (max < 1) {
86 kevents = malloc(sizeof(struct kevent) * max);
88 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max);
92 memset(kevents, 0, sizeof(struct kevent) * max);
94 nkevents = max;
H A Dpoll.c32 static int fpm_event_poll_init(int max);
72 static int fpm_event_poll_init(int max) /* {{{ */ argument
76 if (max < 1) {
81 pollfds = malloc(sizeof(struct pollfd) * max);
83 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max);
86 memset(pollfds, 0, sizeof(struct pollfd) * max);
89 for (i = 0; i < max; i++) {
94 active_pollfds = malloc(sizeof(struct pollfd) * max);
97 zlog(ZLOG_ERROR, "poll: unable to allocate %d events", max);
100 memset(active_pollfds, 0, sizeof(struct pollfd) * max);
[all...]
H A Dport.c32 static int fpm_event_port_init(int max);
69 static int fpm_event_port_init(int max) /* {{{ */ argument
78 if (max < 1) {
83 events = malloc(sizeof(port_event_t) * max);
85 zlog(ZLOG_ERROR, "port: Unable to allocate %d events", max);
89 nevents = max;
H A Dselect.c38 static int fpm_event_select_init(int max);
75 static int fpm_event_select_init(int max) /* {{{ */ argument
146 zlog(ZLOG_ERROR, "select: not enough space in the select fd list (max = %d). Please consider using another event mechanism.", FD_SETSIZE);
H A Depoll.c31 static int fpm_event_epoll_init(int max);
68 static int fpm_event_epoll_init(int max) /* {{{ */ argument
70 if (max < 1) {
75 epollfd = epoll_create(max + 1);
82 epollfds = malloc(sizeof(struct epoll_event) * max);
84 zlog(ZLOG_ERROR, "epoll: unable to allocate %d events", max);
87 memset(epollfds, 0, sizeof(struct epoll_event) * max);
89 /* save max */
90 nepollfds = max;
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_printint.c643 unsigned int min, max; local
785 max = GET2(ccode,1 + IMM2_SIZE);
786 if (max == 0) fprintf(f, "{%u,}", min);
787 else fprintf(f, "{%u,%u}", min, max);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapprentice.c107 uint32_t max; member in struct:magic_entry_set
998 if (mset[i].count == mset[i].max) {
1001 mset[i].max += ALLOC_INCR;
1003 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) ==
1005 file_oomem(ms, sizeof(*mp) * mset[i].max);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_open.c418 zip_uint64_t min, max, j; local
423 max = cd->entry[0].orig->offset;
427 min = max = 0;
439 if (j > max)
440 max = j;
441 if (max > (zip_uint64_t)cd->offset) {
469 return (max-min) < ZIP_INT64_MAX ? (zip_int64_t)(max-min) : ZIP_INT64_MAX;
/PHP_TRUNK/ext/gmp/
H A Dgmp.c117 ZEND_ARG_INFO(0, max)
587 const unsigned char *p, *max; local
597 max = buf + buf_len;
599 if (!php_var_unserialize(&zv, &p, max, &unserialize_data)
609 if (!php_var_unserialize(&zv, &p, max, &unserialize_data)
1834 /* {{{ proto GMP gmp_random_range(mixed min, mixed max)
1835 Gets a random number in the range min to max */
/PHP_TRUNK/ext/zlib/
H A Dzlib.c377 static inline int php_zlib_inflate_rounds(z_stream *Z, size_t max, char **buf, size_t *len) argument
385 buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in;
388 if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size))) {
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c37 if (i > max) { \
38 max = i; \
52 int max = -1; local
85 var = max;
89 max = MAX(max, var + num);
195 op_array->T = max + 1;
/PHP_TRUNK/ext/posix/
H A Dposix.c1392 zend_long res, cur, max; local
1394 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &res, &cur, &max) == FAILURE) {
1399 rl.rlim_max = max;
/PHP_TRUNK/ext/wddx/
H A Dwddx.c96 int top, max; member in struct:__anon3
177 stack->max = STACK_BLOCK_SIZE;
189 if (stack->top >= stack->max) { /* we need to allocate more memory */
191 (sizeof(void **) * (stack->max += STACK_BLOCK_SIZE)));
/PHP_TRUNK/ext/interbase/
H A Dphp_ibase_includes.h187 #ifndef max
188 #define max(a,b) ((a)>(b)?(a):(b)) macro

Completed in 45 milliseconds

12