From 8f801199f8f4ea21f1bd78f54e533d9f824e48eb Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 27 May 2007 14:04:56 +0000 Subject: [PATCH] added xcache.experimental for use to turn on experimental features git-svn-id: svn://svn.lighttpd.net/xcache/trunk@399 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- ChangeLog | 7 +++++++ xcache.c | 1 + xcache.ini | 4 +++- xcache_globals.h | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6423586..5db1d8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,11 @@ 2.0.0 2007-?-? +Ini Settings Changes +======== + * new: xcache.experimental = Off + +ChangeLog +======== + * new: xcache.stat = On * could not show module info in admin page when XCache is the last module * wrong http auth realm * #86: remove/edit variable in admin page diff --git a/xcache.c b/xcache.c index 1197c0b..f378960 100644 --- a/xcache.c +++ b/xcache.c @@ -2541,6 +2541,7 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("xcache.cacher", "1", PHP_INI_ALL, OnUpdateBool, cacher, zend_xcache_globals, xcache_globals) STD_PHP_INI_BOOLEAN("xcache.stat", "1", PHP_INI_ALL, OnUpdateBool, stat, zend_xcache_globals, xcache_globals) + STD_PHP_INI_BOOLEAN("xcache.experimental", "0", PHP_INI_ALL, OnUpdateBool, experimental, zend_xcache_globals, xcache_globals) #ifdef HAVE_XCACHE_OPTIMIZER STD_PHP_INI_BOOLEAN("xcache.optimizer", "0", PHP_INI_ALL, OnUpdateBool, optimizer, zend_xcache_globals, xcache_globals) #endif diff --git a/xcache.ini b/xcache.ini index 3aec72f..d2e639f 100644 --- a/xcache.ini +++ b/xcache.ini @@ -40,7 +40,6 @@ xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 -xcache.test = Off ; N/A for /dev/zero xcache.readonly_protection = Off ; for *nix, xcache.mmap_path is a file path, not directory. @@ -59,6 +58,9 @@ xcache.cacher = On xcache.stat = On xcache.optimizer = Off +xcache.test = Off +xcache.experimental = Off + [xcache.coverager] ; per request settings ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance) diff --git a/xcache_globals.h b/xcache_globals.h index 4783cc8..166eb42 100644 --- a/xcache_globals.h +++ b/xcache_globals.h @@ -2,6 +2,7 @@ ZEND_BEGIN_MODULE_GLOBALS(xcache) zend_bool cacher; /* true if enabled */ zend_bool stat; + zend_bool experimental; #ifdef HAVE_XCACHE_OPTIMIZER zend_bool optimizer; /* true if enabled */ #endif