diff --git a/xcache.c b/xcache.c index 9b393d2..399656c 100644 --- a/xcache.c +++ b/xcache.c @@ -1801,8 +1801,8 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("xcache.optimizer", "0", PHP_INI_ALL, OnUpdateBool, optimizer, zend_xcache_globals, xcache_globals) #endif #ifdef HAVE_XCACHE_COVERAGER - PHP_INI_ENTRY1 ("xcache.coveragedump_directory", "", PHP_INI_SYSTEM, xc_OnUpdateString, &xc_coveragedump_dir) - STD_PHP_INI_BOOLEAN("xcache.coveragedumper" , "1", PHP_INI_ALL, OnUpdateBool, coveragedumper, zend_xcache_globals, xcache_globals) + PHP_INI_ENTRY1 ("xcache.coveragedump_directory", "/tmp/pcov/", PHP_INI_SYSTEM, xc_OnUpdateString, &xc_coveragedump_dir) + STD_PHP_INI_BOOLEAN("xcache.coveragedumper" , "0", PHP_INI_ALL, OnUpdateBool, coveragedumper, zend_xcache_globals, xcache_globals) #endif PHP_INI_END() /* }}} */ diff --git a/xcache.ini b/xcache.ini index 87e0ed3..1f67553 100644 --- a/xcache.ini +++ b/xcache.ini @@ -13,7 +13,7 @@ xcache.admin.user = "mOo" xcache.admin.pass = "" [xcache] -; ini only settings, all the values here is default +; ini only settings, all the values here is default unless explained ; to disable: xcache.size=0 ; to enable : xcache.size=any size > 0 and your system mmap allows xcache.size = 0 @@ -30,8 +30,12 @@ xcache.var_slots = 8K xcache.test = Off ; N/A for /dev/zero xcache.readonly_protection = Off +; for win32, xcache.mmap_path=anonymous map name, not file path ; uncomment and change to "/tmp/xcache" for readonly protection +; 2 group of php won't share the same /tmp/xcache xcache.mmap_path = "/dev/zero" + + ; leave it blank(disabled) or "/tmp/phpcore/" ; make sure it's writable by php (without checking open_basedir) xcache.coredump_directory = "" @@ -42,7 +46,8 @@ xcache.optimizer = Off [xcache.coverager] ; ini only settings -; xcache.coveragedump_directory = "/tmp/pcov/" -xcache.coveragedump_directory = "" -; per request settings, disable if xcache.coveragedump_directory is not set -xcache.coveragedumper = On +; make sure it's readable (care open_basedir) coverage viewer script +xcache.coveragedump_directory = "/tmp/pcov/" + +; per request settings, will be auto disabled if xcache.coveragedump_directory is not set +xcache.coveragedumper = Off