FolusWen c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
..
tests c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
LICENSE c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
Makefile.am c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
Makefile.frag c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
README.ZEND_MM c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
README.ZEND_VM c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
Zend.m4 c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
acinclude.m4 c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
bench.php c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
buildconf c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
configure.ac c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
header c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
micro_bench.php c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend.ico c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_API.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_API.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_alloc.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_alloc.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_alloc_sizes.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_arena.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ast.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ast.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_bitset.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_build.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_builtin_functions.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_builtin_functions.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_closures.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_closures.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_compile.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_compile.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_config.nw.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_config.w32.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_constants.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_constants.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_cpuinfo.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_cpuinfo.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_default_classes.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_dtrace.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_dtrace.d c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_dtrace.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_errors.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_exceptions.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_exceptions.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_execute.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_execute.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_execute_API.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_extensions.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_extensions.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_float.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_float.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_gc.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_gc.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_generators.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_generators.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_globals.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_globals_macros.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_hash.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_hash.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_highlight.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_highlight.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_inheritance.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_inheritance.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini_parser.y c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini_scanner.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini_scanner.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini_scanner.l c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ini_scanner_defs.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_interfaces.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_interfaces.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_istdiostream.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_iterators.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_iterators.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_language_parser.y c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_language_scanner.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_language_scanner.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_language_scanner.l c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_language_scanner_defs.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_list.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_list.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_llist.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_llist.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_long.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_modules.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_multibyte.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_multibyte.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_multiply.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_object_handlers.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_object_handlers.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_objects.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_objects.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_objects_API.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_objects_API.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_opcode.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_operators.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_operators.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_portability.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ptr_stack.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ptr_stack.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_range_check.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_signal.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_signal.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_smart_str.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_smart_str.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_smart_str_public.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_smart_string.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_smart_string_public.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_sort.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_sort.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_sprintf.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_stack.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_stack.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_stream.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_stream.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_string.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_string.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_strtod.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_strtod.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_strtod_int.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ts_hash.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_ts_hash.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_type_info.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_types.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_variables.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_variables.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_virtual_cwd.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_virtual_cwd.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_def.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_execute.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_execute.skl c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_gen.php c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_handlers.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_opcodes.c c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_opcodes.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_trace_handlers.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren
zend_vm_trace_map.h c2d3f4474f [Improve][GPL][PHP / lighttpd] vor 3 Jahren

README.ZEND_MM

Zend Memory Manager
===================

General:
--------

The goal of the new memory manager (available since PHP 5.2) is to reduce memory
allocation overhead and speedup memory management.

The new manager's "configure" has no "--disable-zend-memory-manager" option,
but it has "--enable-malloc-mm" instead. It is enabled by default in DEBUG
build and disabled by default in RELEASE build. When enabled it allows selecting
between malloc and emalloc at runtime so you can use internal and external memory
debuggers without recompilation.

Debugging:
----------

Normal:

$ sapi/cli/php -r 'leak();'

Zend MM disabled:

$ USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -r 'leak();'

Shared extensions:
------------------

Since PHP 5.3.11 it is possible to prevent shared extensions from unloading so
that valgrind can correctly track the memory leaks in shared extensions. For
this there is the ZEND_DONT_UNLOAD_MODULES environment variable. If set, then
DL_UNLOAD() is skipped during the shutdown of shared extensions.


Tweaking:
---------

The Zend MM can be tweaked using ZEND_MM_MEM_TYPE and ZEND_MM_SEG_SIZE environment
variables. Default values are "malloc" and "256K". Dependent on target system you
can also use "mmap_anon", "mmap_zero" and "win32" storage managers.

$ ZEND_MM_MEM_TYPE=mmap_anon ZEND_MM_SEG_SIZE=1M sapi/cli/php ..etc.