/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 21 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 D | fpm_shm.h | 8 int fpm_shm_free(void *mem, size_t size);
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_sigsafe.c | 13 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 D | phpdbg_sigsafe.h | 9 char *mem; member 19 void phpdbg_set_sigsafe_mem(char *mem);
|
/PHP-7.2/ext/mbstring/oniguruma/src/ |
H A D | regexec.c | 755 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 D | zip_memdup.c | 41 _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 D | zend_extensions.c | 288 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 D | zend_extensions.h | 77 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 D | zend_persist.c | 130 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 D | zend_file_cache.c | 104 (((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 D | ZendAccelerator.c | 1298 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 D | zend_accelerator_util_funcs.c | 780 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 D | ZendAccelerator.h | 120 void *mem; /* shared memory area used by script structures */ member 220 void *mem; member
|
H A D | zend_shared_alloc.c | 357 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 D | bug44069.phpt | 10 // $newstring .= $string; //This uses an expected amount of mem. 11 $newstring = $newstring . $string; //This uses very much mem.
|
H A D | bug29015.phpt | 2 Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
|
/PHP-7.2/ext/soap/tests/bugs/ |
H A D | bug75502.phpt | 10 /* The important part is that restriction>enumeration is used together with mem cache.
|
/PHP-7.2/ext/sysvshm/ |
H A D | php_sysvshm.h | 56 char mem; member
|
H A D | sysvshm.c | 310 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 D | document.c | 1614 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 D | bug71587.phpt | 26 // Print mem leak
|
/PHP-7.2/sapi/cli/tests/ |
H A D | php_cli_server_016.phpt | 4 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 D | sqlite_statement.c | 184 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 D | gd_jpeg.c | 740 (*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 D | config.m4 | 228 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])
|