/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 22 void *mem; in fpm_shm_alloc() local 24 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc() 27 if (mem == MAP_FAILED) { in fpm_shm_alloc() 33 if (!mem) { in fpm_shm_alloc() 39 return mem; in fpm_shm_alloc() 43 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument 45 if (!mem) { in fpm_shm_free() 50 if (munmap(mem, size) == -1) { in fpm_shm_free()
|
H A D | fpm_shm.h | 9 int fpm_shm_free(void *mem, size_t size);
|
/PHP-7.0/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.0/ext/mbstring/oniguruma/ |
H A D | regexec.c | 709 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 D | testc.c | 34 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 D | testu.c | 58 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.0/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.0/Zend/ |
H A D | zend_extensions.c | 275 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 D | zend_extensions.h | 59 typedef size_t (*op_array_persist_func_t)(zend_op_array *op_array, void *mem); 133 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem);
|
/PHP-7.0/ext/opcache/ |
H A D | zend_file_cache.c | 99 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) < (char*)script->mem + script->size) || \ 213 (zend_string*)ZCG(mem), in zend_file_cache_serialize_interned() 698 new_script->mem = NULL; in zend_file_cache_serialize() 741 void *mem, *buf; in zend_file_cache_script_store() local 805 efree(mem); in zend_file_cache_script_store() 819 efree(mem); in zend_file_cache_script_store() 827 efree(mem); in zend_file_cache_script_store() 1240 script->mem = buf; in zend_file_cache_unserialize() 1325 mem = (void*)(((zend_uintptr_t)mem + 63L) & ~63L); in zend_file_cache_script_load() 1399 buf = mem; in zend_file_cache_script_load() [all …]
|
H A D | zend_persist.c | 121 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist() 122 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumU… in zend_hash_persist() 145 void *data = ZCG(mem); in zend_hash_persist() 203 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist_immutable() 204 …ZCG(mem) = (void*)((char*)ZCG(mem) + (hash_size * sizeof(uint32_t)) + (ht->nNumUsed * sizeof(Bucke… in zend_hash_persist_immutable() 227 void *data = ZCG(mem); in zend_hash_persist_immutable() 683 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex() 912 script->mem = ZCG(mem); in zend_accel_script_persist() 925 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist() 930 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist() [all …]
|
H A D | ZendAccelerator.c | 1230 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_file_cache() 1253 ZCG(mem)); in cache_script_in_file_cache() 1318 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory() 1322 if (!ZCG(mem)) { in cache_script_in_shared_memory() 1347 ZCG(mem)); in cache_script_in_shared_memory() 2624 void *mem; in accel_remap_huge_pages() local 2626 mem = mmap(NULL, size, in accel_remap_huge_pages() 2630 if (mem == MAP_FAILED) { in accel_remap_huge_pages() 2655 munmap(mem, size); in accel_remap_huge_pages() 2664 munmap(mem, size); in accel_remap_huge_pages() [all …]
|
H A D | zend_accelerator_util_funcs.c | 830 signed char *mem = (signed char*)persistent_script->mem; in zend_accel_script_checksum() local 835 if (mem < (signed char*)persistent_script) { in zend_accel_script_checksum() 836 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem); in zend_accel_script_checksum() 837 size -= (signed char*)persistent_script - mem; in zend_accel_script_checksum() 838 mem += (signed char*)persistent_script - mem; in zend_accel_script_checksum() 841 zend_adler32(checksum, mem, persistent_script_check_block_size); in zend_accel_script_checksum() 842 mem += sizeof(*persistent_script); in zend_accel_script_checksum() 846 checksum = zend_adler32(checksum, mem, size); in zend_accel_script_checksum()
|
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()
|
H A D | ZendAccelerator.h | 167 void *mem; /* shared memory area used by script structures */ member 265 void *mem; member
|
/PHP-7.0/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.0/ext/mbstring/oniguruma/win32/ |
H A D | testc.c | 34 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.0/ext/sysvshm/ |
H A D | php_sysvshm.h | 56 char mem; member
|
/PHP-7.0/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.0/ext/wddx/tests/ |
H A D | bug71587.phpt | 26 // Print mem leak
|
/PHP-7.0/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 144 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.0/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.0/ext/gd/libgd/ |
H A D | gd_jpeg.c | 717 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof (my_source_mgr)); in jpeg_gdIOCtx_src() 719 …src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src() 757 …dest->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, OU… in init_destination() 840 …cinfo->dest = (struct jpeg_destination_mgr *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JP… in jpeg_gdIOCtx_dest()
|