From 7a6edb78d47756f80828d1a149c75e0ccabef518 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Tue, 4 Aug 2009 11:14:00 +0000 Subject: [PATCH] correct cache class index git-svn-id: svn://svn.lighttpd.net/xcache/trunk@667 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/head.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/head.m4 b/processor/head.m4 index 72c7cc3..8da5e88 100644 --- a/processor/head.m4 +++ b/processor/head.m4 @@ -193,7 +193,7 @@ static zend_ulong xc_get_class_num(xc_processor_t *processor, zend_class_entry * ceptr = CestToCePtr(php->classinfos[i].cest); if (ZCEP_REFCOUNT_PTR(ceptr) == ZCEP_REFCOUNT_PTR(ce)) { processor->cache_ce = ceptr; - processor->cache_class_index = i + 1; + processor->cache_class_index = i; return i + 1; } }