Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 9 of 9) sorted by relevance

/PHP-8.3/main/streams/
H A Dmemory.c223 size_t newsize; in php_stream_memory_set_option() local
235 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
236 if (newsize <= ZSTR_LEN(ms->data)) { in php_stream_memory_set_option()
237 ms->data = zend_string_truncate(ms->data, newsize, 0); in php_stream_memory_set_option()
238 if (newsize < ms->fpos) { in php_stream_memory_set_option()
239 ms->fpos = newsize; in php_stream_memory_set_option()
243 ms->data = zend_string_realloc(ms->data, newsize, 0); in php_stream_memory_set_option()
244 memset(ZSTR_VAL(ms->data) + old_size, 0, newsize - old_size); in php_stream_memory_set_option()
H A Dstreams.c1472 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument
1474 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/PHP-8.3/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.h167 size_t newsize = oldsize + MAX(oldsize >> 1, needed); \
168 zend_string *newstr = erealloc((buf)->str, _ZSTR_STRUCT_SIZE(newsize)); \
170 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \
/PHP-8.3/win32/
H A Dglob.c679 u_int newsize, len; in globextend() local
683 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs); in globextend()
684 pathv = pglob->gl_pathv ? realloc((char *)pglob->gl_pathv, newsize) : in globextend()
685 malloc(newsize); in globextend()
717 newsize + *limitp >= ARG_MAX) { in globextend()
/PHP-8.3/ext/opcache/jit/dynasm/
H A Dminilua.c533 int newsize; in luaM_growaux_() local
537 newsize=limit; in luaM_growaux_()
540 newsize=(*size)*2; in luaM_growaux_()
541 if(newsize<4) in luaM_growaux_()
542 newsize=4; in luaM_growaux_()
545 *size=newsize; in luaM_growaux_()
1074 L->size_ci=newsize;
1273 int h1=lmod(h,newsize);
1280 tb->size=newsize;
2675 size_t newsize;
[all …]
/PHP-8.3/ext/pcre/pcre2lib/
H A Dpcre2_dfa_match.c429 uint32_t newsize = (rws->size >= UINT32_MAX/2)? UINT32_MAX/2 : rws->size * 2; in more_workspace() local
430 uint32_t newsizeK = newsize/(1024/sizeof(int)); in more_workspace()
434 newsize = newsizeK*(1024/sizeof(int)); in more_workspace()
436 if (newsize < RWS_RSIZE + ovecsize + RWS_ANCHOR_SIZE) in more_workspace()
438 new = mb->memctl.malloc(newsize*sizeof(int), mb->memctl.memory_data); in more_workspace()
442 new->size = newsize; in more_workspace()
H A Dpcre2_match.c668 PCRE2_SIZE newsize = match_data->heapframes_size * 2; in match() local
670 if (newsize > mb->heap_limit) in match()
674 newsize = maxsize; in match()
677 new = match_data->memctl.malloc(newsize, match_data->memctl.memory_data); in match()
686 match_data->heapframes_size = newsize; in match()
688 heapframes_size = (newsize / frame_size) * frame_size; in match()
H A Dpcre2_compile.c4686 uint32_t newsize = cb->named_group_list_size * 2; in parse_regex() local
4688 cb->cx->memctl.malloc(newsize * sizeof(named_group), in parse_regex()
4702 cb->named_group_list_size = newsize; in parse_regex()
/PHP-8.3/main/
H A Dphp_streams.h451 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);

Completed in 92 milliseconds