﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,appname,phpversion,exts,sapi,probability,blockedby,blocking
88,[patch] add a hack/option to disable variable cache authentication,judas_iscariote,moo,"as discussed on irc, here is a hack/patch to disable variable cache authentication, not very nice but works for me


{{{
ndex: xcache_globals.h
===================================================================
--- xcache_globals.h    (revisión: 366)
+++ xcache_globals.h    (copia de trabajo)
@@ -14,6 +14,7 @@
        xc_stack_t *var_holds;
        time_t request_time;
        long   var_ttl;
+       zend_bool auth_enabled;
 ZEND_END_MODULE_GLOBALS(xcache)
 
 ZEND_EXTERN_MODULE_GLOBALS(xcache)
Index: xcache.c
===================================================================
--- xcache.c    (revisión: 366)
+++ xcache.c    (copia de trabajo)
@@ -1527,20 +1527,23 @@
        char *admin_user = NULL;
        char *admin_pass = NULL;
        HashTable *ht;
-
+
+       /* auth disabled, nothing to do.. */
+       if (!XG(auth_enabled)) {
+               return 1;
+       }
@@ -2334,6 +2343,7 @@
 
        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)
 #ifdef HAVE_XCACHE_OPTIMIZER
        STD_PHP_INI_BOOLEAN(""xcache.optimizer"",              ""0"", PHP_INI_ALL,    OnUpdateBool,        optimizer,         zend_xcache_globals, xcache_globals)
 #endif
}}}

cya.
",defect,closed,major,1.2.1,cacher,1.2-dev,fixed,,,,,,Irrelevant,,,
