Changeset 823 for trunk/xcache.h


Ignore:
Timestamp:
2012-03-22T18:29:49+01:00 (2 years ago)
Author:
moo
Message:

PHP_5_4: HashTable? bucket changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.h

    r822 r823  
    140140#   define BUCKET_HEAD_SIZE(b) XtOffsetOf(Bucket, arKey) 
    141141#endif 
    142 #define BUCKET_SIZE(b) (BUCKET_HEAD_SIZE(b) + BUCKET_KEY_SIZE(b)) 
     142 
     143#ifdef ZEND_ENGINE_2_4 
     144#   define BUCKET_SIZE(b) (sizeof(Bucket) + BUCKET_KEY_SIZE(b)) 
     145#else 
     146#   define BUCKET_SIZE(b) (BUCKET_HEAD_SIZE(b) + BUCKET_KEY_SIZE(b)) 
     147#endif 
    143148 
    144149#ifndef IS_UNICODE 
Note: See TracChangeset for help on using the changeset viewer.