Changeset 358
- Timestamp:
- 07/14/09 15:09:00 (1 year ago)
- Files:
-
- eaccelerator/trunk/ea_restore.c (modified) (3 diffs)
- eaccelerator/trunk/ea_store.c (modified) (2 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ea_restore.c
r357 r358 128 128 void fixup_zval(char *base, zval * zv TSRMLS_DC) 129 129 { 130 switch ( Z_TYPE_P(zv) & ~IS_CONSTANT_INDEX) {130 switch (EA_ZV_TYPE_P(zv)) { 131 131 case IS_CONSTANT: /* fallthrough */ 132 132 case IS_OBJECT: /* fallthrough: object are serialized */ … … 352 352 void restore_zval(zval * zv TSRMLS_DC) 353 353 { 354 switch ( zv->type & ~IS_CONSTANT_INDEX) {354 switch (EA_ZV_TYPE_P(zv)) { 355 355 case IS_CONSTANT: 356 356 case IS_OBJECT: … … 730 730 restore_zval_hash(&to->constants_table, &from->constants_table); 731 731 to->constants_table.pDestructor = ZVAL_PTR_DTOR; 732 733 /* restore properties */ 734 restore_hash(&to->properties_info, &from->properties_info, (restore_bucket_t) restore_property_info TSRMLS_CC); 735 to->properties_info.pDestructor = properties_info_dtor; 736 732 737 /* restore default properties */ 733 738 restore_zval_hash(&to->default_properties, &from->default_properties); 734 739 to->default_properties.pDestructor = ZVAL_PTR_DTOR; 735 /* restore properties */736 restore_hash(&to->properties_info, &from->properties_info, (restore_bucket_t) restore_property_info TSRMLS_CC);737 to->properties_info.pDestructor = properties_info_dtor;738 740 739 741 /* restore default_static_members */ eaccelerator/trunk/ea_store.c
r356 r358 125 125 size_t size = 0; 126 126 127 switch ( Z_TYPE_P(zv) & ~IS_CONSTANT_INDEX) {127 switch (EA_ZV_TYPE_P(zv)) { 128 128 case IS_CONSTANT: 129 129 case IS_OBJECT: /* object should have been serialized before storing them */ … … 453 453 void store_zval(char **at, zval *zv TSRMLS_DC) 454 454 { 455 switch ( Z_TYPE_P(zv) & ~IS_CONSTANT_INDEX) {455 switch (EA_ZV_TYPE_P(zv)) { 456 456 case IS_CONSTANT: 457 457 case IS_OBJECT: /* object should have been serialized before storing them */ eaccelerator/trunk/eaccelerator.h
r356 r358 196 196 /******************************************************************************/ 197 197 198 /* get the type of the zvalue */ 199 #ifdef ZEND_ENGINE_2_3 200 # define EA_ZV_TYPE_P(zv) (Z_TYPE_P(zv) & IS_CONSTANT_TYPE_MASK) 201 #else 202 # define EA_ZV_TYPE_P(zv) (Z_TYPE_P(zv) & ~IS_CONSTANT_INDEX) 203 #endif 204 198 205 199 206 #ifndef offsetof