Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 100) sorted by path

1234

/PHP-7.4/
H A DCODING_STANDARDS.md75 The use of `malloc()` should be limited to cases where a third-party library
H A Dconfigure.ac434 malloc.h \
/PHP-7.4/TSRM/
H A DTSRM.c281 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
396 …(*thread_resources_ptr) = (tsrm_tls_entry *) malloc(TSRM_ALIGNED_SIZE(sizeof(tsrm_tls_entry)) + ts… in allocate_new_resource()
399 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
419 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
666 mutexp = malloc(sizeof(CRITICAL_SECTION)); in tsrm_mutex_alloc()
669 mutexp = (MUTEX_T) malloc(sizeof(*mutexp)); in tsrm_mutex_alloc()
672 mutexp = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in tsrm_mutex_alloc()
H A Dtsrm_win32.c172 pResultSid = malloc(sid_len); in tsrm_win32_get_token_sid()
325 psec_desc = (BYTE *)malloc(sec_desc_length); in tsrm_win32_access()
483 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); in popen_ex()
/PHP-7.4/Zend/
H A Dzend.c634 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
638 compiler_globals->class_table = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
644 compiler_globals->auto_globals = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
869 GLOBAL_FUNCTION_TABLE = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
870 GLOBAL_CLASS_TABLE = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
871 GLOBAL_AUTO_GLOBALS_TABLE = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
872 GLOBAL_CONSTANTS_TABLE = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
892 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
893 compiler_globals->class_table = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
1148 new_info = (char *) malloc(new_info_length + 1); in END_EXTERN_C()
H A Dzend_API.c1935 module_request_startup_handlers = (zend_module_entry**)malloc( in zend_collect_module_handlers()
1967 class_cleanup_handlers = (zend_class_entry**)malloc( in zend_collect_module_handlers()
2266 reg_function = malloc(sizeof(zend_internal_function)); in zend_register_functions()
2297 new_arg_info = malloc(sizeof(zend_arg_info) * num_args); in zend_register_functions()
2698 zend_class_entry *class_entry = malloc(sizeof(zend_class_entry)); in do_register_internal_class()
H A Dzend_alloc.c2648 p = (char *) malloc(length + 1);
2748 zend_mm_heap *mm_heap = alloc_globals->mm_heap = malloc(sizeof(zend_mm_heap));
2761 mm_heap->tracked_allocs = malloc(sizeof(HashTable));
2982 void *tmp = malloc(len);
H A Dzend_constants.c101 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
H A Dzend_ini.c94 registered_zend_ini_directives = (HashTable *) malloc(sizeof(HashTable)); in zend_ini_startup()
166 EG(ini_directives) = (HashTable *) malloc(sizeof(HashTable)); in zend_copy_ini_directives()
H A Dzend_ini_parser.y43 #define YYMALLOC malloc
H A Dzend_language_parser.y39 #define YYMALLOC malloc
H A Dzend_list.c274 lde = malloc(sizeof(zend_rsrc_list_dtors_entry)); in zend_register_list_destructors_ex()
H A Dzend_strtod.c226 #define MALLOC malloc
H A Dzend_types.h845 (zend_array *) malloc(sizeof(zend_array)); \
878 (zend_resource *) malloc(sizeof(zend_resource)); \
932 (zend_reference *) malloc(sizeof(zend_reference)); \
H A Dzend_virtual_cwd.c409 realpath_cache_bucket *bucket = malloc(size); in realpath_cache_add()
777 substitutename = malloc((len + 1) * sizeof(char)); in tsrm_realpath_r()
H A Dzend_vm_execute.h61057 zend_handlers_table = malloc(sizeof(HashTable));
H A Dzend_vm_execute.skl87 zend_handlers_table = malloc(sizeof(HashTable));
/PHP-7.4/build/
H A Dax_gcc_func_attribute.m449 # malloc
160 [malloc], [
H A Dphp.m41426 struct s *s = malloc(sizeof(struct s) + 3);
/PHP-7.4/ext/com_dotnet/
H A Dcom_dotnet.c129 stuff = malloc(sizeof(*stuff)); in dotnet_init()
/PHP-7.4/ext/curl/
H A Dinterface.c1411 php_curl_openssl_tsl = malloc(c * sizeof(MUTEX_T)); in PHP_MINIT_FUNCTION()
/PHP-7.4/ext/date/lib/
H A Dtimelib.h318 # define timelib_malloc malloc
/PHP-7.4/ext/dom/
H A Dphp_dom.c538 Z_PTR_P(zv) = malloc(sizeof(dom_prop_handler)); in dom_copy_prop_handler()
/PHP-7.4/ext/exif/
H A Dexif.c1361 HashTable *ht = malloc(sizeof(HashTable)); in exif_make_tag_ht()
1384 EXIF_G(tag_table_cache) = malloc(sizeof(HashTable)); in exif_get_tag_ht()
/PHP-7.4/ext/ffi/
H A Dffi.c3316 scope = malloc(sizeof(zend_ffi_scope)); in zend_ffi_load()
3321 FFI_G(scopes) = malloc(sizeof(HashTable)); in zend_ffi_load()
6396 _(malloc) \

Completed in 326 milliseconds

1234