Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 45) sorted by relevance

12

/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_shm.c21 void *mem; in fpm_shm_alloc() local
23 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
26 if (mem == MAP_FAILED) { in fpm_shm_alloc()
32 if (!mem) { in fpm_shm_alloc()
38 return mem; in fpm_shm_alloc()
42 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
44 if (!mem) { in fpm_shm_free()
49 if (munmap(mem, size) == -1) { in fpm_shm_free()
H A Dfpm_shm.h8 int fpm_shm_free(void *mem, size_t size);
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_sigsafe.c13 return (void *) (((size_t) PHPDBG_G(sigsafe_mem).mem & ~(alignment - 1)) + alignment); in ZEND_EXTERN_MODULE_GLOBALS()
31 phpdbg_signal_safe_mem *mem = &PHPDBG_G(sigsafe_mem); in phpdbg_set_sigsafe_mem() local
39 mem->mem = buffer; in phpdbg_set_sigsafe_mem()
40 mem->allocated = 0; in phpdbg_set_sigsafe_mem()
42 mem->heap = zend_mm_startup_ex(&phpdbg_handlers, NULL, 0); in phpdbg_set_sigsafe_mem()
44 mem->old_heap = zend_mm_set_heap(mem->heap); in phpdbg_set_sigsafe_mem()
53 PHPDBG_G(sigsafe_mem).mem = NULL; in phpdbg_clear_sigsafe_mem()
57 return !!PHPDBG_G(sigsafe_mem).mem; in phpdbg_active_sigsafe_mem()
H A Dphpdbg_sigsafe.h9 char *mem; member
19 void phpdbg_set_sigsafe_mem(char *mem);
/PHP-7.1/ext/mbstring/oniguruma/
H A Dregexec.c709 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
743 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
750 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
763 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
770 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
2146 pstart = STACK_AT(mem_start_stk[mem])->u.mem.pstr; in match_at()
2151 ? STACK_AT(mem_end_stk[mem])->u.mem.pstr in match_at()
2178 pstart = STACK_AT(mem_start_stk[mem])->u.mem.pstr; in match_at()
2183 ? STACK_AT(mem_end_stk[mem])->u.mem.pstr in match_at()
2215 ? STACK_AT(mem_end_stk[mem])->u.mem.pstr in match_at()
[all …]
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) in xx() argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) { in xx()
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo); in xx()
129 if (region->beg[mem] == from && region->end[mem] == to) { in xx()
135 from, to, region->beg[mem], region->end[mem]); in xx()
149 static void x3(char* pattern, char* str, int from, int to, int mem) in x3() argument
151 xx(pattern, str, from, to, mem, 0); in x3()
H A Dtestu.c58 static void xx(char* pattern, char* str, int from, int to, int mem, int not) in xx() argument
103 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) { in xx()
109 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo); in xx()
175 if (region->beg[mem] == from && region->end[mem] == to) { in xx()
181 from, to, region->beg[mem], region->end[mem]); in xx()
195 static void x3(char* pattern, char* str, int from, int to, int mem) in x3() argument
197 xx(pattern, str, from, to, mem, 0); in x3()
/PHP-7.1/ext/zip/lib/
H A Dzip_memdup.c41 _zip_memdup(const void *mem, size_t len, zip_error_t *error) in _zip_memdup() argument
54 memcpy(ret, mem, len); in _zip_memdup()
/PHP-7.1/Zend/
H A Dzend_extensions.c275 char *mem; member
288 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler()
290 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler()
303 data.mem = NULL; in zend_extensions_op_array_persist_calc()
310 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem) in zend_extensions_op_array_persist() argument
317 data.mem = mem; in zend_extensions_op_array_persist()
H A Dzend_extensions.h77 typedef size_t (*op_array_persist_func_t)(zend_op_array *op_array, void *mem);
151 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem);
/PHP-7.1/ext/opcache/
H A Dzend_persist.c130 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist()
131 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumU… in zend_hash_persist()
154 void *data = ZCG(mem); in zend_hash_persist()
222 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist_immutable()
223 …ZCG(mem) = (void*)((char*)ZCG(mem) + (hash_size * sizeof(uint32_t)) + (ht->nNumUsed * sizeof(Bucke… in zend_hash_persist_immutable()
246 void *data = ZCG(mem); in zend_hash_persist_immutable()
592 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex()
854 script->mem = ZCG(mem); in zend_accel_script_persist()
876 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist()
881 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist()
[all …]
H A Dzend_file_cache.c104 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) < (char*)script->mem + script->size) || \
218 (zend_string*)ZCG(mem), in zend_file_cache_serialize_interned()
723 new_script->mem = NULL; in zend_file_cache_serialize()
794 void *mem, *buf; in zend_file_cache_script_store() local
858 efree(mem); in zend_file_cache_script_store()
872 efree(mem); in zend_file_cache_script_store()
880 efree(mem); in zend_file_cache_script_store()
1318 script->mem = buf; in zend_file_cache_unserialize()
1403 mem = (void*)(((zend_uintptr_t)mem + 63L) & ~63L); in zend_file_cache_script_load()
1477 buf = mem; in zend_file_cache_script_load()
[all …]
H A DZendAccelerator.c1240 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache()
1260 (size_t)ZCG(mem)); in store_script_in_file_cache()
1344 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory()
1348 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1376 (size_t)ZCG(mem)); in cache_script_in_shared_memory()
2675 void *mem; in accel_remap_huge_pages() local
2677 mem = mmap(NULL, size, in accel_remap_huge_pages()
2681 if (mem == MAP_FAILED) { in accel_remap_huge_pages()
2706 munmap(mem, size); in accel_remap_huge_pages()
2715 munmap(mem, size); in accel_remap_huge_pages()
[all …]
H A Dzend_accelerator_util_funcs.c780 signed char *mem = (signed char*)persistent_script->mem; in zend_accel_script_checksum() local
785 if (mem < (signed char*)persistent_script) { in zend_accel_script_checksum()
786 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem); in zend_accel_script_checksum()
787 size -= (signed char*)persistent_script - mem; in zend_accel_script_checksum()
788 mem += (signed char*)persistent_script - mem; in zend_accel_script_checksum()
791 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum()
792 mem += sizeof(*persistent_script); in zend_accel_script_checksum()
796 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum()
H A DZendAccelerator.h147 void *mem; /* shared memory area used by script structures */ member
246 void *mem; member
H A Dzend_shared_alloc.c357 retval = ZCG(mem); in _zend_shared_memdup()
358 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
/PHP-7.1/Zend/tests/
H A Dbug44069.phpt10 // $newstring .= $string; //This uses an expected amount of mem.
11 $newstring = $newstring . $string; //This uses very much mem.
H A Dbug29015.phpt2 Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
/PHP-7.1/ext/mbstring/oniguruma/win32/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) in xx() argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) { in xx()
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo); in xx()
129 if (region->beg[mem] == from && region->end[mem] == to) { in xx()
135 from, to, region->beg[mem], region->end[mem]); in xx()
149 static void x3(char* pattern, char* str, int from, int to, int mem) in x3() argument
151 xx(pattern, str, from, to, mem, 0); in x3()
/PHP-7.1/ext/soap/tests/bugs/
H A Dbug75502.phpt10 /* The important part is that restriction>enumeration is used together with mem cache.
/PHP-7.1/ext/sysvshm/
H A Dphp_sysvshm.h56 char mem; member
/PHP-7.1/ext/dom/
H A Ddocument.c1614 xmlChar *mem; in PHP_FUNCTION() local
1650 if (!mem) { in PHP_FUNCTION()
1654 RETVAL_STRING((char *) mem); in PHP_FUNCTION()
1666 if (!size || !mem) { in PHP_FUNCTION()
1669 RETVAL_STRINGL((char *) mem, size); in PHP_FUNCTION()
1670 xmlFree(mem); in PHP_FUNCTION()
2155 xmlChar *mem = NULL; in PHP_FUNCTION() local
2202 if (!mem) { in PHP_FUNCTION()
2218 if (!size || !mem) { in PHP_FUNCTION()
2223 if (mem) in PHP_FUNCTION()
[all …]
/PHP-7.1/ext/wddx/tests/
H A Dbug71587.phpt26 // Print mem leak
/PHP-7.1/ext/pdo_sqlite/
H A Dsqlite_statement.c144 zend_string *mem = php_stream_copy_to_mem(stm, PHP_STREAM_COPY_ALL, 0); in pdo_sqlite_stmt_param_hook() local
146 ZVAL_STR(parameter, mem ? mem : ZSTR_EMPTY_ALLOC()); in pdo_sqlite_stmt_param_hook()
/PHP-7.1/sapi/cli/tests/
H A Dphp_cli_server_016.phpt4 this is an indirect test for bug 60591, since mem leak is reproted in the server side

Completed in 79 milliseconds

12