Home
last modified time | relevance | path

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

12

/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_shm.c22 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()
38 memset(mem, 0, size); in fpm_shm_alloc()
40 return mem; in fpm_shm_alloc()
44 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
46 if (!mem) { in fpm_shm_free()
51 if (munmap(mem, size) == -1) { in fpm_shm_free()
H A Dfpm_shm.h9 int fpm_shm_free(void *mem, size_t size);
/PHP-5.5/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;\
2151 pstart = STACK_AT(mem_start_stk[mem])->u.mem.pstr; in match_at()
2156 ? STACK_AT(mem_end_stk[mem])->u.mem.pstr in match_at()
2183 pstart = STACK_AT(mem_start_stk[mem])->u.mem.pstr; in match_at()
2188 ? STACK_AT(mem_end_stk[mem])->u.mem.pstr in match_at()
2220 ? 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()
H A Dregcomp.c5821 MemNumType mem; in onig_print_compiled_byte_code() local
5846 mem = *((MemNumType* )bp); in onig_print_compiled_byte_code()
5848 fprintf(f, ":%d", mem); in onig_print_compiled_byte_code()
5973 mem = *((MemNumType* )bp); in onig_print_compiled_byte_code()
5975 fprintf(f, ":%d", mem); in onig_print_compiled_byte_code()
5983 GET_MEMNUM_INC(mem, bp); in onig_print_compiled_byte_code()
5985 fprintf(f, "%d", mem); in onig_print_compiled_byte_code()
6002 GET_MEMNUM_INC(mem, bp); in onig_print_compiled_byte_code()
6004 fprintf(f, "%d", mem); in onig_print_compiled_byte_code()
6012 mem = *((MemNumType* )bp); in onig_print_compiled_byte_code()
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_memdup.c42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) in _zip_memdup() argument
52 memcpy(ret, mem, len); in _zip_memdup()
/PHP-5.5/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-5.5/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-5.5/sapi/milter/
H A DTODO1 threaded version still leaks mem, don't know why
/PHP-5.5/ext/sysvshm/
H A Dphp_sysvshm.h44 char mem; member
H A Dsysvshm.c306 shm_data = &shm_var->mem; in PHP_FUNCTION()
379 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
/PHP-5.5/ext/wddx/tests/
H A Dbug71587.phpt26 // Print mem leak
/PHP-5.5/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-5.5/ext/opcache/
H A DZendAccelerator.c896 signed char *mem = (signed char*)persistent_script->mem; in zend_accel_script_checksum() local
901 if (mem < (signed char*)persistent_script) { in zend_accel_script_checksum()
902 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem); in zend_accel_script_checksum()
904 mem += (signed char*)persistent_script - mem; in zend_accel_script_checksum()
908 mem += sizeof(*persistent_script); in zend_accel_script_checksum()
1173 ZCG(mem) = zend_shared_alloc(memory_used); in cache_script_in_shared_memory()
1174 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1181 new_persistent_script->mem = ZCG(mem); in cache_script_in_shared_memory()
1188 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1193 new_persistent_script->mem, in cache_script_in_shared_memory()
[all …]
H A Dzend_shared_alloc.c346 retval = ZCG(mem);; in _zend_shared_memdup()
347 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
H A DZendAccelerator.h199 void *mem; /* shared memory area used by script structures */ member
267 void *mem; member
/PHP-5.5/ext/dom/
H A Ddocument.c1804 xmlChar *mem; in PHP_FUNCTION() local
1839 mem = (xmlChar*) xmlBufferContent(buf); in PHP_FUNCTION()
1840 if (!mem) { in PHP_FUNCTION()
1844 RETVAL_STRING(mem, 1); in PHP_FUNCTION()
1859 RETVAL_STRINGL(mem, size, 1); in PHP_FUNCTION()
1860 xmlFree(mem); in PHP_FUNCTION()
2328 xmlChar *mem = NULL; in PHP_FUNCTION() local
2375 if (!mem) { in PHP_FUNCTION()
2389 htmlDocDumpMemory(docp, &mem, &size); in PHP_FUNCTION()
2396 if (mem) in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/gd/libgd/
H A Dgd_jpeg.c717 (*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()
H A Dgd_topal.c794 boxlist = (boxptr) (*cinfo->mem->alloc_small)
1599 table = (int *) (*cinfo->mem->alloc_small)
1707 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large)
1839 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
1861 cquantize->histogram = (hist3d) (*cinfo->mem->alloc_small)
1865 cquantize->histogram[i] = (hist2d) (*cinfo->mem->alloc_large)
1898 cquantize->sv_colormap = (*cinfo->mem->alloc_sarray)
1918 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large)
/PHP-5.5/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])
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.h411 void XMLRPC_Free(void* mem);
/PHP-5.5/
H A D.gitignore7 *.mem
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_stmt_bind_param.phpt78 $mem = memory_get_usage();
83 if (($tmp = (memory_get_usage() - $mem)) > 600)

Completed in 87 milliseconds

12