Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 107) sorted by relevance

12345

/PHP-8.3/ext/ffi/tests/
H A Dgh14626.phpt7 if (substr(PHP_OS, 0, 3) == 'WIN') die("skip no malloc() on windows");
18 void *malloc(size_t size);
21 $ptr = $ffi->malloc(10);
/PHP-8.3/ext/pcre/pcre2lib/
H A Dpcre2_context.c59 return malloc(size); in default_malloc()
89 void *yield = (memctl == NULL)? malloc(size) : in PRIV()
90 memctl->malloc(size, memctl->memory_data); in PRIV()
95 newmemctl->malloc = default_malloc; in PRIV()
123 gcontext->memctl.malloc = private_malloc; in pcre2_general_context_create()
232 gcontext->memctl.malloc(sizeof(pcre2_real_general_context), in pcre2_general_context_copy()
244 ccontext->memctl.malloc(sizeof(pcre2_real_compile_context), in pcre2_compile_context_copy()
256 mcontext->memctl.malloc(sizeof(pcre2_real_match_context), in pcre2_match_context_copy()
269 ccontext->memctl.malloc(sizeof(pcre2_real_convert_context), in pcre2_convert_context_copy()
H A Dpcre2_maketables.c78 uint8_t *yield = (uint8_t *)malloc(TABLES_LENGTH);
85 gcontext->memctl.malloc(TABLES_LENGTH, gcontext->memctl.memory_data) :
86 malloc(TABLES_LENGTH));
H A Dpcre2_serialize.c109 bytes = memctl->malloc(total_size + sizeof(pcre2_memctl), memctl->memory_data); in pcre2_serialize_encode()
192 tables = memctl->malloc(TABLES_LENGTH + sizeof(PCRE2_SIZE), memctl->memory_data); in pcre2_serialize_decode()
/PHP-8.3/ext/opcache/jit/vtune/
H A Dittnotify_config.h467 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
484 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
501 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
517 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
533 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
548 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
563 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
580 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
H A Djitprofiling.c208 dllName = (char*)malloc(sizeof(char) * (dNameLength + 1)); in loadiJIT_Funcs()
227 dllName = (char*)malloc(sizeof(char) * (dNameLength + 1)); in loadiJIT_Funcs()
/PHP-8.3/ext/fileinfo/
H A Dconfig.m427 s0 = (char *) malloc(42);
28 s1 = (char *) malloc(8);
/PHP-8.3/ext/mysqli/tests/
H A Dbug49442.phpt69 … 'persistent' means that mysqlnd uses malloc() instead of emalloc(). nothing else. ext/mysqli will
71 It's only about malloc() vs. emalloc().
73 … However, the bug is about malloc() and efree(). You can make mysqlnd use malloc() by either using
/PHP-8.3/sapi/phpdbg/
H A Dphpdbg_parser.y31 #define YYMALLOC malloc
96 $$.file.name = malloc($1.len + $2.len + 1);
106 $$.file.name = malloc($1.len + $2.len + 1);
/PHP-8.3/sapi/fuzzer/
H A Dfuzzer-json.c34 char *data = malloc(Size+1); in LLVMFuzzerTestOneInput()
H A Dfuzzer-unserialize.c33 unsigned char *orig_data = malloc(Size+1); in LLVMFuzzerTestOneInput()
H A Dfuzzer-mbregex.c34 char *data = malloc(Size+1); in LLVMFuzzerTestOneInput()
H A Dfuzzer-unserializehash.c38 unsigned char *orig_data = malloc(Size+1); in LLVMFuzzerTestOneInput()
/PHP-8.3/sapi/cli/
H A Dps_title.c192 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
193 frozen_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
225 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args()
/PHP-8.3/sapi/fpm/fpm/
H A Dfpm_env.c27 char *malloc(); in setenv()
35 if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0) { in setenv()
282 if ((new_environ = malloc((1U + env_nb) * sizeof (char *))) == NULL) { in fpm_env_init_main()
H A Dfpm_worker_pool.c72 ret = malloc(sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc()
H A Dfpm_arrays.h23 a = malloc(sizeof(struct fpm_array_s)); in fpm_array_init()
/PHP-8.3/sapi/fpm/fpm/events/
H A Ddevpoll.c84 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
97 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
H A Dpoll.c76 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init()
89 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init()
/PHP-8.3/main/streams/
H A Dphp_streams_int.h29 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size…
/PHP-8.3/TSRM/
H A DTSRM.c262 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
381 …(*thread_resources_ptr) = (tsrm_tls_entry *) malloc(TSRM_ALIGNED_SIZE(sizeof(tsrm_tls_entry)) + ts… in allocate_new_resource()
384 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
403 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
600 mutexp = malloc(sizeof(CRITICAL_SECTION)); in tsrm_mutex_alloc()
603 mutexp = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in tsrm_mutex_alloc()
/PHP-8.3/ext/zend_test/tests/
H A Dgh11078.phpt2 GH-11078 (PHP Fatal error triggers pointer being freed was not allocated and malloc: double free fo…
/PHP-8.3/main/
H A Dphp_scandir.c92 newdp = (struct dirent *) malloc(dsize); in php_scandir()
/PHP-8.3/win32/
H A Dreaddir.c48 filespecw = (wchar_t *)malloc((filespecw_len + 1)*sizeof(wchar_t)); in opendir()
174 filespecw = (wchar_t *)malloc((filespecw_len + 1)*sizeof(wchar_t)); in rewinddir()
H A Dwsyslog.c154 PW32G(log_header) = malloc(header_len*sizeof(char)); in openlog()

Completed in 31 milliseconds

12345