diff --git a/NEWS b/NEWS index 0766619..1b36c11 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ 1.2.1 2007-?-? == NEWS == + +== Ini Settings Changes == + * new: xcache.admin.auth = On + == ChangeLog == * fixed #56: xcache_set segfaults when xcache.var_size=0 diff --git a/xcache-zh-gb2312.ini b/xcache-zh-gb2312.ini index 6c5d84b..c06db7f 100644 --- a/xcache-zh-gb2312.ini +++ b/xcache-zh-gb2312.ini @@ -10,6 +10,7 @@ zend_extension_ts = c:/php/extensions/php_xcache.dll ; extension = php_xcache.dll [xcache.admin] +xcache.admin.auth = On xcache.admin.user = "mOo" ; xcache.admin.pass = md5($ÄúµÄÃÜÂë) xcache.admin.pass = "" diff --git a/xcache.c b/xcache.c index 2137ae2..7179c73 100644 --- a/xcache.c +++ b/xcache.c @@ -2339,7 +2339,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.enable_auth", "1", PHP_INI_SYSTEM, OnUpdateBool, auth_enabled, zend_xcache_globals, xcache_globals) + STD_PHP_INI_BOOLEAN("xcache.admin.enable_auth", "1", PHP_INI_SYSTEM, OnUpdateBool, auth_enabled, 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..a2381f1 100644 --- a/xcache.ini +++ b/xcache.ini @@ -10,6 +10,7 @@ zend_extension_ts = c:/php/extensions/php_xcache.dll ; extension = php_xcache.dll [xcache.admin] +xcache.admin.auth = On xcache.admin.user = "mOo" ; xcache.admin.pass = md5($your_password) xcache.admin.pass = ""