Permalink
Browse files

fix #73

  • Loading branch information...
krakjoe committed Jun 8, 2014
1 parent e7ec188 commit 244473d2bca7aff7ce24a58651ab8a261669d99d
Showing with 2 additions and 5 deletions.
  1. +0 −1 apc_bin.c
  2. +2 −4 apc_cache.c
View
@@ -235,7 +235,6 @@ static void apc_swizzle_zval(apc_bd_t *bd, apc_context_t* ctxt, zend_llist *ll,
apc_swizzle_ptr(bd, ctxt, ll, &zv->value.str.val);
break;
case IS_ARRAY:
case IS_CONSTANT_ARRAY:
apc_swizzle_hashtable(bd, ctxt, ll, zv->value.ht, (apc_swizzle_cb_t)apc_swizzle_zval, 1 TSRMLS_CC);
apc_swizzle_ptr(bd, ctxt, ll, &zv->value.ht);
break;
View
@@ -1001,9 +1001,8 @@ PHP_APCU_API zend_bool apc_cache_update(apc_cache_t* cache, char *strkey, zend_u
if ((h == (*slot)->key.h) &&
!memcmp((*slot)->key.str, strkey, keylen)) {
/* attempt to perform update */
switch(Z_TYPE_P((*slot)->value->val) & ~IS_CONSTANT_INDEX) {
switch(Z_TYPE_P((*slot)->value->val) & ~IS_CONSTANT_TYPE_MASK) {
case IS_ARRAY:
case IS_CONSTANT_ARRAY:
case IS_OBJECT:
{
if(cache->serializer) {
@@ -1124,7 +1123,7 @@ static zval* my_serialize_object(zval* dst, const zval* src, apc_context_t* ctxt
}
if(serialize((unsigned char**)&buf.c, &buf.len, src, config TSRMLS_CC)) {
dst->type = src->type & ~IS_CONSTANT_INDEX;
dst->type = src->type & ~IS_CONSTANT;
dst->value.str.len = buf.len;
CHECK(dst->value.str.val = apc_pmemcpy(buf.c, (buf.len + 1), pool TSRMLS_CC));
}
@@ -1357,7 +1356,6 @@ static APC_HOTSPOT zval* my_copy_zval(zval* dst, const zval* src, apc_context_t*
break;
case IS_ARRAY:
case IS_CONSTANT_ARRAY:
if(ctxt->serializer == NULL) {
CHECK(dst->value.ht =

0 comments on commit 244473d

Please sign in to comment.