Searched refs:limit (Results 1 - 25 of 43) sorted by relevance

12

/PHP_TRUNK/ext/sockets/tests/
H A Dmcast_helpers.php.inc2 function checktimeout($sock, $limit) {
5 if (socket_select($readfs, $writefs, $exceptfs, 0, $limit*1000) != 1) {
/PHP_TRUNK/ext/spl/internal/
H A Dinfiniteiterator.inc26 $limit = new LimitIterator($infinite, 0, 5);
27 foreach($limit as $val=>$key)
H A Dlimititerator.inc33 * @param it Iterator to limit
/PHP_TRUNK/TSRM/
H A Dtsrm_config_common.h58 # define tsrm_do_alloca_ex(size, limit, use_heap) \
59 ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size))
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.h144 } limit; member in union:_spl_dual_it_object::__anon234
H A Dspl_iterators.c1468 intern->u.limit.offset = 0; /* start at beginning */
1469 intern->u.limit.count = -1; /* get all */
1470 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "O|ll", &zobject, ce_inner, &intern->u.limit.offset, &intern->u.limit.count) == FAILURE) {
1473 if (intern->u.limit.offset < 0) {
1477 if (intern->u.limit.count < 0 && intern->u.limit.count != -1) {
2488 if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit
[all...]
/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.h28 ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int options, int limit);
H A Dzend_builtin_functions.c239 ZEND_ARG_INFO(0, limit)
244 ZEND_ARG_INFO(0, limit)
2262 /* {{{ proto void debug_print_backtrace([int options[, int limit]]) */
2277 zend_long limit = 0; local
2279 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ll", &options, &limit) == FAILURE) {
2290 while (ptr && (limit == 0 || frameno < limit)) {
2448 ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int options, int limit) /* {{{ */ argument
2486 while (ptr && (limit == 0 || frameno < limit)) {
2656 zend_long limit = 0; local
[all...]
H A Dzend_portability.h346 # define do_alloca_ex(size, limit, use_heap) \
347 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
H A Dzend_alloc.c124 # define ZEND_MM_LIMIT 1 /* support for user-defined memory limit */
256 size_t limit; /* memory limit */ member in struct:_zend_mm_heap
373 size_t limit,
385 limit,
1011 if (UNEXPECTED(heap->real_size + ZEND_MM_CHUNK_SIZE > heap->limit)) {
1016 zend_mm_safe_error(heap, "Allowed memory size of %zu bytes exhausted at %s:%d (tried to allocate %zu bytes)", heap->limit, __zend_filename, __zend_lineno, size);
1018 zend_mm_safe_error(heap, "Allowed memory size of %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
1480 if (UNEXPECTED(heap->real_size + (new_size - old_size) > heap->limit)) {
1481 if (zend_mm_gc(heap) && heap->real_size + (new_size - old_size) <= heap->limit) {
371 zend_mm_safe_error(zend_mm_heap *heap, const char *format, size_t limit, const char *filename, uint lineno, size_t size) argument
[all...]
/PHP_TRUNK/win32/
H A Dselect.c39 ULONGLONG ms_total, limit; local
100 limit = GetTickCount64() + ms_total;
152 } while (retcode == 0 && (ms_total == INFINITE || GetTickCount64() < limit));
H A Dglob.c442 size_t limit = 0; local
500 if ((err = glob1(patbuf, patbuf+MAXPATHLEN-1, pglob, &limit)) != 0)
513 return(globextend(pattern, pglob, &limit));
/PHP_TRUNK/ext/session/
H A Dmod_mm.c446 time_t limit; local
453 time(&limit);
455 limit -= maxlifetime;
463 if (sd->ctime < limit) {
/PHP_TRUNK/ext/json/
H A Dphp_json_scanner.h30 php_json_ctype *limit; /* the last read character + 1 position */ member in struct:_php_json_scanner
H A Djson_scanner.re27 #define YYLIMIT s->limit
87 s->limit = (php_json_ctype *) str + str_len;
190 if (s->limit < s->cursor) {
/PHP_TRUNK/ext/pcre/pcrelib/sljit/
H A DsljitUtils.c203 SLJIT_API_FUNC_ATTRIBUTE struct sljit_stack* SLJIT_CALL sljit_allocate_stack(sljit_uw limit, sljit_uw max_limit, void *allocator_data) argument
215 if (limit > max_limit || limit < 1)
233 /* Align limit and max_limit. */
247 stack->limit = stack->base;
249 if (sljit_stack_resize(stack, stack->base + limit)) {
270 stack->limit = stack->base + limit;
299 aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align;
310 stack->limit
[all...]
/PHP_TRUNK/main/
H A Dfastcgi.c1456 fcgi_log(FCGI_ERROR, "Too many open file descriptors. FD_SETSIZE limit exceeded.");
1533 int limit, rest; local
1546 limit = sizeof(req->out_buf) - (req->out_pos - req->out_buf);
1549 if (limit < sizeof(fcgi_header)) {
1556 limit = sizeof(req->out_buf) - (req->out_pos - req->out_buf);
1557 if (rest < limit) {
1562 memcpy(req->out_pos, str, limit);
1563 req->out_pos += limit;
1564 rest -= limit;
1565 str += limit;
[all...]
/PHP_TRUNK/ext/intl/transliterator/
H A Dtransliterator_methods.c305 limit = -1; local
318 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
354 &str, &str_len, &start, &limit ) == FAILURE )
361 if( limit < -1 )
369 if( start < 0 || ((limit != -1 ) && (start > limit )) )
387 if( ( start > ustr_len ) || (( limit != -1 ) && (limit > ustr_len ) ) )
409 int32_t temp_limit = ( limit == -1 ? ustr_len : (int32_t) limit );
[all...]
/PHP_TRUNK/ext/intl/uchar/
H A Duchar.c176 UChar32 start, UChar32 limit,
182 /* Note that $start is INclusive, whiel $limit is EXclusive
186 ZVAL_LONG(&args[1], limit);
281 /* {{{ void void IntlChar::enumCharNames(int|string $start, int|string $limit, callable $callback, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
284 ZEND_ARG_INFO(0, limit)
319 UChar32 start, limit; local
327 (convert_cp(&limit, zlimit) == FAILURE)) {
331 u_enumCharNames(start, limit, (UEnumCharNamesFn*)enumCharNames_callback, &context, nameChoice, &error);
175 enumCharType_callback(enumCharType_data *context, UChar32 start, UChar32 limit, UCharCategory type) argument
/PHP_TRUNK/ext/standard/
H A Dfile.c2027 char *temp, *tptr, *bptr, *line_end, *limit; local
2042 line_end = limit = tptr;
2059 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0);
2121 if ((size_t)temp_len > (size_t)(limit - buf)) {
2138 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter);
2139 line_end_len = buf_len - (size_t)(limit - buf);
2203 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0);
2227 inc_len = (bptr < limit
[all...]
H A Drandom.c187 zend_ulong limit = ZEND_ULONG_MAX - (ZEND_ULONG_MAX % umax) - 1; local
189 /* Discard numbers over the limit to avoid modulo bias */
190 while (result > limit) {
H A Dvar_unserializer.re260 #define YYLIMIT limit
520 const unsigned char *cursor, *limit, *marker, *start;
523 limit = max;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_frame.c192 int i = 0, limit = num; local
196 if (limit < 0) {
197 phpdbg_error("backtrace", "type=\"minnum\"", "Invalid backtrace size %d", limit);
204 zend_fetch_debug_backtrace(&zbacktrace, 0, 0, limit);
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.h36 PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count);
66 int is_callable_replace, int limit, int *replace_count);
H A Dphp_pcre.c475 * If we reached cache limit, clean out the items from the head of the list;
1060 int limit, int *replace_count)
1071 is_callable_replace, limit, replace_count);
1079 PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count) argument
1179 /* if (EXPECTED(count > 0 && (limit == -1 || limit > 0))) */
1180 if (EXPECTED(count > 0 && limit)) {
1280 if (EXPECTED(limit)) {
1281 limit--;
1283 } else if (count == PCRE_ERROR_NOMATCH || UNEXPECTED(limit
1056 php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count) argument
1350 php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, int is_callable_replace, int *replace_count) argument
1503 zend_long limit = -1; local
1540 zend_long limit = -1; local
1581 zend_long limit = -1; local
1654 zend_long limit = -1; local
[all...]

Completed in 193 milliseconds

12