Home
last modified time | relevance | path

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

123

/php-7.4/ext/pcre/
H A Dphp_pcre.c(last modified 25/11/19 08:00)822 * If we reached cache limit, clean out the items from the head of the list; in pcre_get_compiled_regex_cache_ex()
1550 size_t limit, size_t *replace_count) in php_pcre_replace()
1566 limit, replace_count); in php_pcre_replace()
1574 PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, size_t subject_len, zend_string *replace_str, size_t limit, size_t *replace_count) in php_pcre_replace_impl() argument
1631 if (count >= 0 && limit > 0) { in php_pcre_replace_impl()
1733 limit--; in php_pcre_replace_impl()
1747 if (count >= 0 && limit > 0) { in php_pcre_replace_impl()
1749 } else if (count == PCRE2_ERROR_NOMATCH || limit == 0) { in php_pcre_replace_impl()
1768 } else if (count == PCRE2_ERROR_NOMATCH || limit == 0) { in php_pcre_replace_impl()
1817 static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, size_t subject_len, zend_fcall_info *fci, zend_fcall_info_cache *fcc, size_t limit, size_ argument
1546 php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, size_t subject_len, zend_string *replace_str, size_t limit, size_t *replace_count) php_pcre_replace() argument
2034 php_pcre_replace_func(zend_string *regex, zend_string *subject_str, zend_fcall_info *fci, zend_fcall_info_cache *fcc, size_t limit, size_t *replace_count, zend_long flags) php_pcre_replace_func() argument
2058 php_pcre_replace_array(HashTable *regex, zval *replace, zend_string *subject_str, size_t limit, size_t *replace_count) php_pcre_replace_array() argument
2142 php_replace_in_subject(zval *regex, zval *replace, zval *subject, size_t limit, size_t *replace_count) php_replace_in_subject() argument
2169 php_replace_in_subject_func(zval *regex, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *subject, size_t limit, size_t *replace_count, zend_long flags) php_replace_in_subject_func() argument
2260 zend_long limit = -1; preg_replace_common() local
2356 zend_long limit = -1, flags = 0; PHP_FUNCTION() local
2396 zend_long limit = -1, flags = 0; PHP_FUNCTION() local
[all...]
H A Dphp_pcre.h(last modified 09/10/19 08:00)30 PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, size_t subject_len, zend_string *replace_str, size_t limit, size_t *replace_count);
49 size_t limit, size_t *replace_count);
/php-7.4/main/
H A Dfastcgi.c(last modified 02/09/19 08:00)1465 fcgi_log(FCGI_ERROR, "Too many open file descriptors. FD_SETSIZE limit exceeded.");
1543 int limit, rest; local
1556 limit = sizeof(req->out_buf) - (req->out_pos - req->out_buf);
1559 if (limit < sizeof(fcgi_header)) {
1566 limit = sizeof(req->out_buf) - (req->out_pos - req->out_buf);
1567 if (rest < limit) {
1572 memcpy(req->out_pos, str, limit);
1573 req->out_pos += limit;
1574 rest -= limit;
1575 str += limit;
[all...]
H A Dphp_variables.c(last modified 13/12/19 08:00)176 php_error_docref(NULL, E_WARNING, "Input variable nesting level exceeded " ZEND_LONG_FMT ". To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_level)); in php_register_variable_ex()
345 "To increase the limit change max_input_vars in php.ini.", in add_post_vars()
498 php_error_docref(NULL, E_WARNING, "Input variables exceeded " ZEND_LONG_FMT ". To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in SAPI_TREAT_DATA_FUNC()
/php-7.4/ext/pcre/pcre2lib/
H A Dpcre2_context.c(last modified 27/05/19 08:00)173 PCRE2_UNSET, /* Offset limit */
374 pcre2_set_parens_nest_limit(pcre2_compile_context *ccontext, uint32_t limit) in pcre2_set_parens_nest_limit() argument
376 ccontext->parens_nest_limit = limit; in pcre2_set_parens_nest_limit()
419 pcre2_set_heap_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_heap_limit() argument
421 mcontext->heap_limit = limit; in pcre2_set_heap_limit()
426 pcre2_set_match_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_match_limit() argument
428 mcontext->match_limit = limit; in pcre2_set_match_limit()
433 pcre2_set_depth_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_depth_limit() argument
435 mcontext->depth_limit = limit; in pcre2_set_depth_limit()
440 pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit) in pcre2_set_offset_limit() argument
450 pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit) pcre2_set_recursion_limit() argument
[all...]
H A Dconfig.h(last modified 15/04/19 08:00)48 limit. The limit exists in order to catch runaway regular expressions that
55 /* The above limit applies to all backtracks, whether or not they are nested.
56 In some environments it is desirable to limit the nesting of backtracking
62 limit. */
67 /* This limit is parameterized just in case anybody ever wants to change it.
74 /* This limit is parameterized just in case anybody ever wants to change it.
H A Dpcre2_error.c(last modified 27/05/19 08:00)176 "pattern string is longer than the limit set by the application\0"
247 "JIT stack limit reached\0"
248 "match limit exceeded\0"
255 "matching depth limit exceeded\0"
259 "offset limit set without PCRE2_USE_OFFSET_LIMIT\0"
267 "heap limit exceeded\0"
/php-7.4/ext/intl/transliterator/
H A Dtransliterator_methods.c(last modified 15/07/19 08:00)305 limit = -1; in PHP_FUNCTION() local
318 &arg1, &str, &str_len, &start, &limit ) == FAILURE ) in PHP_FUNCTION()
352 &str, &str_len, &start, &limit ) == FAILURE ) in PHP_FUNCTION()
359 if( limit < -1 ) in PHP_FUNCTION()
367 if( start < 0 || ((limit != -1 ) && (start > limit )) ) in PHP_FUNCTION()
385 if( ( start > ustr_len ) || (( limit != -1 ) && (limit > ustr_len ) ) ) in PHP_FUNCTION()
407 int32_t temp_limit = ( limit == -1 ? ustr_len : (int32_t) limit ); in PHP_FUNCTION()
[all...]
/php-7.4/ext/standard/
H A Dmt_rand.c(last modified 13/02/19 23:05)215 uint32_t result, limit; in rand_range32() local
233 limit = UINT32_MAX - (UINT32_MAX % umax) - 1; in rand_range32()
235 /* Discard numbers over the limit to avoid modulo bias */ in rand_range32()
236 while (UNEXPECTED(result > limit)) { in rand_range32()
245 uint64_t result, limit; in rand_range64() local
264 limit = UINT64_MAX - (UINT64_MAX % umax) - 1; in rand_range64()
266 /* Discard numbers over the limit to avoid modulo bias */ in rand_range64()
267 while (UNEXPECTED(result > limit)) { in rand_range64()
H A Dfile.c(last modified 16/09/19 08:00)2092 char *temp, *tptr, *bptr, *line_end, *limit; in php_fgetcsv() local
2109 line_end = limit = tptr; in php_fgetcsv()
2126 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2188 if ((size_t)temp_len > (size_t)(limit - buf)) { in php_fgetcsv()
2205 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
2206 line_end_len = buf_len - (size_t)(limit - buf); in php_fgetcsv()
2271 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2295 inc_len = (bptr < limit in php_fgetcsv()
[all...]
H A Dstring.c(last modified 03/12/19 08:00)38 * limit the damage to just the actual setlocale() call in this file
1060 PHPAPI void php_explode(const zend_string *delim, zend_string *str, zval *return_value, zend_long limit) in php_explode() argument
1084 } while (p2 != NULL && --limit > 1); in php_explode()
1096 PHPAPI void php_explode_negative_limit(const zend_string *delim, zend_string *str, zval *return_value, zend_long limit) in php_explode_negative_limit() argument
1106 do nothing since limit <= -1, thus if only one chunk - 1 + (limit) <= 0 in php_explode_negative_limit()
1124 to_return = limit + found; in php_explode_negative_limit()
1125 /* limit is at least -1 therefore no need of bounds checking : i will be always less than found */ in php_explode_negative_limit()
1136 /* {{{ proto array explode(string separator, string str [, int limit])
1137 Splits a string on string separator and return array of components. If limit i
1141 zend_long limit = ZEND_LONG_MAX; /* No limit */ PHP_FUNCTION() local
[all...]
H A Drandom.c(last modified 04/09/19 08:00)256 zend_ulong limit = ZEND_ULONG_MAX - (ZEND_ULONG_MAX % umax) - 1; in php_random_int() local
258 /* Discard numbers over the limit to avoid modulo bias */ in php_random_int()
259 while (trial > limit) { in php_random_int()
/php-7.4/ext/spl/
H A Dspl_iterators.c(last modified 04/09/19 08:00)1448 intern->u.limit.offset = 0; /* start at beginning */ in spl_dual_it_construct()
1449 intern->u.limit.count = -1; /* get all */ in spl_dual_it_construct()
1450 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "O|ll", &zobject, ce_inner, &intern->u.limit.offset, &intern->u.limit.count) == FAILURE) { in spl_dual_it_construct()
1453 if (intern->u.limit.offset < 0) { in spl_dual_it_construct()
1457 if (intern->u.limit.count < 0 && intern->u.limit.count != -1) { in spl_dual_it_construct()
2451 if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit in spl_limit_it_valid()
[all...]
/php-7.4/ext/intl/uchar/
H A Duchar.c(last modified 13/02/19 23:05)186 UChar32 start, UChar32 limit, in enumCharType_callback()
192 /* Note that $start is INclusive, while $limit is EXclusive in enumCharType_callback()
196 ZVAL_LONG(&args[1], limit); in enumCharType_callback()
291 /* {{{ void void IntlChar::enumCharNames(int|string $start, int|string $limit, callable $callback, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
294 ZEND_ARG_INFO(0, limit)
329 UChar32 start, limit; in IC_METHOD() local
337 (convert_cp(&limit, zlimit) == FAILURE)) { in IC_METHOD()
341 u_enumCharNames(start, limit, (UEnumCharNamesFn*)enumCharNames_callback, &context, nameChoice, &error); in IC_METHOD()
185 enumCharType_callback(enumCharType_data *context, UChar32 start, UChar32 limit, UCharCategory type) enumCharType_callback() argument
/php-7.4/Zend/
H A Dzend_alloc.c(last modified 07/10/19 08:00)127 # define ZEND_MM_LIMIT 1 /* support for user-defined memory limit */
251 size_t limit; /* memory limit */ member
371 size_t limit, in zend_mm_safe_error()
383 limit, in zend_mm_safe_error()
951 if (UNEXPECTED(ZEND_MM_CHUNK_SIZE > heap->limit - heap->real_size)) {
956 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);
958 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);
1477 if (UNEXPECTED(new_size - old_size > heap->limit - heap->real_size)) {
1478 if (zend_mm_gc(heap) && new_size - old_size <= heap->limit
369 zend_mm_safe_error(zend_mm_heap *heap, const char *format, size_t limit, const char *filename, uint32_t lineno, size_t size) zend_mm_safe_error() argument
[all...]
H A Dzend_builtin_functions.c(last modified 24/12/19 08:00)228 ZEND_ARG_INFO(0, limit)
233 ZEND_ARG_INFO(0, limit)
2219 /* {{{ proto void debug_print_backtrace([int options[, int limit]]) */
2234 zend_long limit = 0; in ZEND_FUNCTION() local
2236 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ll", &options, &limit) == FAILURE) { in ZEND_FUNCTION()
2247 while (ptr && (limit == 0 || frameno < limit)) { in ZEND_FUNCTION()
2410 ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int options, int limit) /* {{{ */ in zend_fetch_debug_backtrace() argument
2450 while (ptr && (limit == 0 || frameno < limit)) { in zend_fetch_debug_backtrace()
2622 zend_long limit = 0; ZEND_FUNCTION() local
[all...]
/php-7.4/sapi/phpdbg/
H A Dphpdbg_frame.c(last modified 15/04/19 08:00)270 int i = 0, limit = num; in phpdbg_dump_backtrace() local
274 if (limit < 0) { in phpdbg_dump_backtrace()
275 phpdbg_error("backtrace", "type=\"minnum\"", "Invalid backtrace size %d", limit); in phpdbg_dump_backtrace()
282 zend_fetch_debug_backtrace(&zbacktrace, 0, 0, limit); in phpdbg_dump_backtrace()
/php-7.4/ext/openssl/
H A Dxp_ssl.c(last modified 06/11/19 08:00)143 zend_long limit; member
1131 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in php_openssl_limit_handshake_reneg()
1138 /* The token level exceeds our allowed limit */ in php_openssl_limit_handshake_reneg()
1139 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in php_openssl_limit_handshake_reneg()
1155 php_error(E_WARNING, "SSL: failed invoking reneg limit notification callback"); in php_openssl_limit_handshake_reneg()
1167 "SSL: client-initiated handshake rate limit exceeded by peer"); in php_openssl_limit_handshake_reneg()
1175 /* Rate-limit client-initiated handshake renegotiation to prevent DoS */ in php_openssl_info_callback()
1185 zend_long limit = OPENSSL_DEFAULT_RENEG_LIMIT; in php_openssl_init_server_reneg_limit() local
1191 limit = zval_get_long(val); in php_openssl_init_server_reneg_limit()
1195 if (limit < in php_openssl_init_server_reneg_limit()
[all...]
/php-7.4/ext/session/
H A Dmod_mm.c(last modified 13/02/19 23:05)442 time_t limit; in PS_GC_FUNC() local
449 time(&limit); in PS_GC_FUNC()
451 limit -= maxlifetime; in PS_GC_FUNC()
459 if (sd->ctime < limit) { in PS_GC_FUNC()
/php-7.4/win32/
H A Dselect.c(last modified 29/07/19 08:00)35 ULONGLONG ms_total, limit; in php_select() local
101 limit = GetTickCount64() + ms_total; in php_select()
153 } while (retcode == 0 && (ms_total == INFINITE || GetTickCount64() < limit)); in php_select()
H A Dglob.c(last modified 13/02/19 23:05)440 size_t limit = 0; local
498 if ((err = glob1(patbuf, patbuf+MAXPATHLEN-1, pglob, &limit)) != 0)
511 return(globextend(pattern, pglob, &limit));
/php-7.4/ext/fileinfo/libmagic/
H A Dcdf.c(last modified 29/10/19 08:00)466 DPRINTF(("Reading master sector loop limit")); in cdf_read_sat()
523 DPRINTF(("Counting chain loop limit")); in cdf_count_chain()
567 DPRINTF(("Read long sector chain loop limit")); in cdf_read_long_sector_chain()
613 DPRINTF(("Read short sector chain loop limit")); in cdf_read_short_sector_chain()
676 DPRINTF(("Read dir loop limit")); in cdf_read_dir()
722 DPRINTF(("Read short sat sector loop limit")); in cdf_read_ssat()
891 DPRINTF(("exceeded property limit %" SIZE_T_FORMAT "u > %" in cdf_grow_info()
/php-7.4/ext/mbstring/libmbfl/filters/
H A Dmbfilter_cp5022x.c(last modified 12/08/19 08:00)501 const int limit = cp932ext3_ucs_table_size > in mbfl_filt_conv_wchar_jis_ms() local
505 for (i = 0; i < limit; i++) { in mbfl_filt_conv_wchar_jis_ms()
731 const int limit = cp932ext3_ucs_table_size > in mbfl_filt_conv_wchar_cp50221() local
735 for (i = 0; i < limit; i++) { in mbfl_filt_conv_wchar_cp50221()
874 const int limit = cp932ext3_ucs_table_size > in mbfl_filt_conv_wchar_cp50222() local
878 for (i = 0; i < limit; i++) { in mbfl_filt_conv_wchar_cp50222()
/php-7.4/sapi/fpm/fpm/
H A Dzlog.h(last modified 27/08/19 08:00)115 /* default log limit */
117 /* minimum log limit */
/php-7.4/ext/posix/
H A Dposix.c(last modified 21/06/19 08:00)1302 static int posix_addlimit(int limit, const char *name, zval *return_value) { in posix_addlimit() argument
1311 result = getrlimit(limit, &rl); in posix_addlimit()
1336 int limit; member
1403 if (posix_addlimit(l->limit, l->name, return_value) == FAILURE) { in PHP_FUNCTION()

Completed in 141 milliseconds

123