/PHP-8.1/ext/mysqlnd/ |
H A D | mysqlnd_result_meta.c | 286 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local 290 ret = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init() 291 memset(ret, 0, alloc_size); in mysqlnd_result_meta_init() 296 alloc_size = (field_count + 1) * sizeof(MYSQLND_FIELD); in mysqlnd_result_meta_init() 297 ret->fields = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init() 298 memset(ret->fields, 0, alloc_size); in mysqlnd_result_meta_init()
|
H A D | mysqlnd_driver.c | 186 const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local 187 MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); in MYSQLND_METHOD() 272 …const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count(… in MYSQLND_METHOD() local 273 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
|
H A D | mysqlnd_result.c | 1108 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local 1119 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init() 1120 memset(ret, 0, alloc_size); in mysqlnd_result_init() 1140 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local 1146 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init() 1147 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init() 1175 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_init() local 1181 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_init() 1182 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_init()
|
/PHP-8.1/build/ |
H A D | ax_gcc_func_attribute.m4 | 28 # alloc_size 95 [alloc_size], [
|
/PHP-8.1/Zend/ |
H A D | zend_portability.h | 203 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size) 204 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X))) 205 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
|
H A D | zend_fibers.c | 187 const size_t alloc_size = stack_size + ZEND_FIBER_GUARD_PAGES * page_size; in zend_fiber_stack_allocate() local 190 pointer = VirtualAlloc(0, alloc_size, MEM_COMMIT, PAGE_READWRITE); in zend_fiber_stack_allocate() 213 …pointer = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, … in zend_fiber_stack_allocate() 223 munmap(pointer, alloc_size); in zend_fiber_stack_allocate()
|
H A D | zend_inheritance.c | 2581 size_t alloc_size; in zend_lazy_class_load() local 2587 alloc_size = sizeof(zend_op_array) + sizeof(void *); in zend_lazy_class_load() 2589 alloc_size += sizeof(HashTable *); in zend_lazy_class_load() 2591 new_op_array = zend_arena_alloc(&CG(arena), alloc_size); in zend_lazy_class_load()
|
/PHP-8.1/ext/sockets/ |
H A D | conversions.c | 111 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument 113 void *ret = emalloc(alloc_size); in accounted_emalloc() 117 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument 119 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc() 123 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument 125 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc() 126 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
|
/PHP-8.1/sapi/cgi/ |
H A D | cgi_main.c | 1590 size_t alloc_size = sizeof(buf); local 1599 if (var_len >= alloc_size) { 1600 alloc_size = var_len + 64; 1601 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); 1613 if (var_len >= alloc_size) { 1614 alloc_size = var_len + 64; 1615 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
|
/PHP-8.1/sapi/litespeed/ |
H A D | lsapi_main.c | 219 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local 245 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables() 246 alloc_size = nlen + 64; in litespeed_php_import_environment_variables() 247 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
|
/PHP-8.1/ext/spl/ |
H A D | spl_heap.c | 285 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert() local 287 heap->elements = erealloc(heap->elements, 2 * alloc_size); in spl_ptr_heap_insert() 288 memset((char *) heap->elements + alloc_size, 0, alloc_size); in spl_ptr_heap_insert()
|
/PHP-8.1/ext/date/lib/ |
H A D | parse_date.re | 356 size_t alloc_size = *count ? (*count * 2) : 1; 358 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message));
|
H A D | parse_date.c | 358 size_t alloc_size = *count ? (*count * 2) : 1; in alloc_error_message() local 360 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message)); in alloc_error_message()
|
/PHP-8.1/ext/ffi/ |
H A D | ffi.c | 6768 _(alloc_size) \
|