From 0f9c2dafcf60709b90d50e8c8c2c7a781cc78983 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 23 Sep 2013 09:52:15 +0000 Subject: [PATCH] adds fix pointer for hash table git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1393 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/hashtable.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/processor/hashtable.m4 b/processor/hashtable.m4 index cd1c012..de53242 100644 --- a/processor/hashtable.m4 +++ b/processor/hashtable.m4 @@ -89,7 +89,7 @@ define(`DEF_HASH_TABLE_FUNC', ` IFCOPY(`DST(`pInternalPointer') = NULL; /* Used for element traversal */') DONE(pInternalPointer) IFCOPY(`DST(`pListHead') = NULL;') DONE(pListHead) #ifdef ZEND_ENGINE_2_4 - if (SRC(`nTableMask')) { + if (SRC(`nTableMask')) { #endif CALLOC(`DST(`arBuckets')', Bucket*, SRC(`nTableSize')) DONE(arBuckets) @@ -160,6 +160,8 @@ define(`DEF_HASH_TABLE_FUNC', ` ') } ') + dnl TODO: fix pointer on arBuckets[n] + FIXPOINTER(Bucket, arBuckets) #ifdef ZEND_ENGINE_2_4 } else { /* if (SRC(`nTableMask')) */