Home
last modified time | relevance | path

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

/PHP-8.2/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.h166 size_t newsize = oldsize + MAX(oldsize >> 1, needed); \
167 zend_string *newstr = erealloc(buf->str, _ZSTR_STRUCT_SIZE(newsize)); \
169 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \
/PHP-8.2/main/streams/
H A Dmemory.c222 size_t newsize; in php_stream_memory_set_option() local
234 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
235 if (newsize <= ZSTR_LEN(ms->data)) { in php_stream_memory_set_option()
236 ms->data = zend_string_truncate(ms->data, newsize, 0); in php_stream_memory_set_option()
237 if (newsize < ms->fpos) { in php_stream_memory_set_option()
238 ms->fpos = newsize; in php_stream_memory_set_option()
242 ms->data = zend_string_realloc(ms->data, newsize, 0); in php_stream_memory_set_option()
243 memset(ZSTR_VAL(ms->data) + old_size, 0, newsize - old_size); in php_stream_memory_set_option()
H A Dstreams.c1444 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument
1446 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/PHP-8.2/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.2/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.2/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.c655 PCRE2_SIZE newsize = mb->frame_vector_size * 2; in match() local
658 if ((newsize / 1024) > mb->heap_limit) in match()
662 newsize = maxsize; in match()
665 new = mb->memctl.malloc(newsize, mb->memctl.memory_data); in match()
675 mb->match_frames_top = (heapframe *)((char *)mb->match_frames + newsize); in match()
676 mb->frame_vector_size = newsize; in match()
H A Dpcre2_compile.c4684 uint32_t newsize = cb->named_group_list_size * 2; in parse_regex() local
4686 cb->cx->memctl.malloc(newsize * sizeof(named_group), in parse_regex()
4700 cb->named_group_list_size = newsize; in parse_regex()
/PHP-8.2/main/
H A Dphp_streams.h442 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);

Completed in 109 milliseconds