Searched refs:malloc (Results 1 – 25 of 106) sorted by relevance
12345
/php-src/ext/ffi/tests/ |
H A D | gh14626.phpt | 7 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-src/ext/pcre/pcre2lib/ |
H A D | pcre2_context.c | 59 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() 235 gcontext->memctl.malloc(sizeof(pcre2_real_general_context), in pcre2_general_context_copy() 247 ccontext->memctl.malloc(sizeof(pcre2_real_compile_context), in pcre2_compile_context_copy() 259 mcontext->memctl.malloc(sizeof(pcre2_real_match_context), in pcre2_match_context_copy() 271 ccontext->memctl.malloc(sizeof(pcre2_real_convert_context), in pcre2_convert_context_copy()
|
H A D | pcre2_maketables.c | 76 uint8_t *yield = (uint8_t *)malloc(TABLES_LENGTH); 83 gcontext->memctl.malloc(TABLES_LENGTH, gcontext->memctl.memory_data) : 84 malloc(TABLES_LENGTH));
|
H A D | pcre2_serialize.c | 109 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-src/ext/mysqli/tests/ |
H A D | bug49442.phpt | 69 … '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-src/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 31 #define YYMALLOC malloc 96 $$.file.name = malloc($1.len + $2.len + 1); 106 $$.file.name = malloc($1.len + $2.len + 1);
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-json.c | 34 char *data = malloc(Size+1); in LLVMFuzzerTestOneInput()
|
H A D | fuzzer-unserialize.c | 33 unsigned char *orig_data = malloc(Size+1); in LLVMFuzzerTestOneInput()
|
H A D | fuzzer-mbregex.c | 34 char *data = malloc(Size+1); in LLVMFuzzerTestOneInput()
|
H A D | fuzzer-unserializehash.c | 38 unsigned char *orig_data = malloc(Size+1); in LLVMFuzzerTestOneInput()
|
/php-src/sapi/cli/ |
H A D | ps_title.c | 193 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args() 194 frozen_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args() 226 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_env.c | 27 char *malloc(); in setenv() 36 if ((cp = malloc(length)) == 0) { in setenv() 283 if ((new_environ = malloc((1U + env_nb) * sizeof (char *))) == NULL) { in fpm_env_init_main()
|
H A D | fpm_worker_pool.c | 72 ret = malloc(sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc()
|
H A D | fpm_arrays.h | 23 a = malloc(sizeof(struct fpm_array_s)); in fpm_array_init()
|
/php-src/ext/dom/lexbor/lexbor/ports/posix/lexbor/core/ |
H A D | memory.c | 9 static lexbor_memory_malloc_f lexbor_memory_malloc = malloc;
|
/php-src/ext/dom/lexbor/lexbor/ports/windows_nt/lexbor/core/ |
H A D | memory.c | 9 static lexbor_memory_malloc_f lexbor_memory_malloc = malloc;
|
/php-src/sapi/fpm/fpm/events/ |
H A D | poll.c | 76 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init() 89 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init()
|
H A D | port.c | 79 events = malloc(sizeof(port_event_t) * max); in fpm_event_port_init()
|
/php-src/main/streams/ |
H A D | php_streams_int.h | 31 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size…
|
/php-src/ext/zend_test/tests/ |
H A D | gh11078.phpt | 2 GH-11078 (PHP Fatal error triggers pointer being freed was not allocated and malloc: double free fo…
|
/php-src/TSRM/ |
H A D | TSRM.c | 262 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() 621 mutexp = malloc(sizeof(CRITICAL_SECTION)); in tsrm_mutex_alloc() 624 mutexp = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in tsrm_mutex_alloc()
|
/php-src/main/ |
H A D | php_scandir.c | 92 newdp = (struct dirent *) malloc(dsize); in php_scandir()
|
/php-src/win32/ |
H A D | readdir.c | 48 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 D | wsyslog.c | 154 PW32G(log_header) = malloc(header_len*sizeof(char)); in openlog()
|
/php-src/ext/fileinfo/libmagic/ |
H A D | is_csv.c | 189 if ((p = CAST(char *, malloc(st.st_size))) == NULL) in main()
|
Completed in 43 milliseconds
12345