Home
last modified time | relevance | path

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

12

/PHP-7.2/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.2/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.2/ext/mbstring/oniguruma/src/
H A Dregexec.c755 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
767 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
774 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
788 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
789 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
795 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
796 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
808 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
809 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
815 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
[all …]
/PHP-7.2/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.2/Zend/
H A Dzend_extensions.c288 char *mem; member
301 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler()
303 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler()
316 data.mem = NULL; in zend_extensions_op_array_persist_calc()
323 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem) in zend_extensions_op_array_persist() argument
330 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);
152 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem);
/PHP-7.2/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) || \
222 (zend_string*)ZCG(mem),
736 new_script->mem = NULL;
821 void *mem, *buf; local
885 efree(mem);
899 efree(mem);
907 efree(mem);
1351 script->mem = buf;
1441 mem = (void*)(((zend_uintptr_t)mem + 63L) & ~63L);
1515 buf = mem;
[all …]
H A DZendAccelerator.c1298 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache()
1302 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L); in store_script_in_file_cache()
1322 (size_t)ZCG(mem)); in store_script_in_file_cache()
1406 if (ZCG(mem)) { in cache_script_in_shared_memory()
1408 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory()
1412 if (ZCG(mem)) { in cache_script_in_shared_memory()
1416 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1444 (size_t)ZCG(mem)); in cache_script_in_shared_memory()
2578 void *mem; in accel_remap_huge_pages() local
2618 munmap(mem, size); in accel_remap_huge_pages()
[all …]
H A Dzend_accelerator_util_funcs.c780 unsigned char *mem = (unsigned char*)persistent_script->mem; in zend_accel_script_checksum() local
785 if (mem < (unsigned char*)persistent_script) { in zend_accel_script_checksum()
786 checksum = zend_adler32(checksum, mem, (unsigned char*)persistent_script - mem); in zend_accel_script_checksum()
787 size -= (unsigned char*)persistent_script - mem; in zend_accel_script_checksum()
788 mem += (unsigned 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.h120 void *mem; /* shared memory area used by script structures */ member
220 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.2/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.2/ext/soap/tests/bugs/
H A Dbug75502.phpt10 /* The important part is that restriction>enumeration is used together with mem cache.
/PHP-7.2/ext/sysvshm/
H A Dphp_sysvshm.h56 char mem; member
H A Dsysvshm.c310 shm_data = &shm_var->mem; in PHP_FUNCTION()
383 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
/PHP-7.2/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.2/ext/wddx/tests/
H A Dbug71587.phpt26 // Print mem leak
/PHP-7.2/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
/PHP-7.2/ext/pdo_sqlite/
H A Dsqlite_statement.c184 zend_string *mem = php_stream_copy_to_mem(stm, PHP_STREAM_COPY_ALL, 0); in pdo_sqlite_stmt_param_hook() local
186 ZVAL_STR(parameter, mem ? mem : ZSTR_EMPTY_ALLOC()); in pdo_sqlite_stmt_param_hook()
/PHP-7.2/ext/gd/libgd/
H A Dgd_jpeg.c740 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof (my_source_mgr)); in jpeg_gdIOCtx_src()
742 …src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src()
780 …dest->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, OU… in init_destination()
863 …cinfo->dest = (struct jpeg_destination_mgr *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JP… in jpeg_gdIOCtx_dest()
/PHP-7.2/sapi/fpm/
H A Dconfig.m4228 if test -r /proc/$$/mem ; then
229 proc_mem_file="mem"
237 AC_MSG_CHECKING([for proc mem file])
276 AC_DEFINE_UNQUOTED([PROC_MEM_FILE], "$proc_mem_file", [/proc/pid/mem interface])

Completed in 73 milliseconds

12