Ticket #88 (closed defect: fixed)
[patch] add a hack/option to disable variable cache authentication
| Reported by: | judas_iscariote | Owned by: | moo |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.1 |
| Component: | cacher | Version: | 1.2-dev |
| Keywords: | Cc: | ||
| Blocked By: | PHP Version: | ||
| Application: | Need User Feedback: | no | |
| Other Exts: | SAPI: | Irrelevant | |
| Probability: | Blocking: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

