Changeset 348 for eaccelerator/trunk/ea_restore.c
- Timestamp:
- 06/20/08 11:20:17 (7 months ago)
- Files:
-
- eaccelerator/trunk/ea_restore.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ea_restore.c
r344 r348 50 50 #endif 51 51 52 #ifdef ZEND_ENGINE_2_3 53 #define RESET_PZVAL_REFCOUNT(z) Z_SET_REFCOUNT_P(z, 1) 54 #else 55 #define RESET_PZVAL_REFCOUNT(z) (z)->refcount = 1; 56 #endif 57 52 58 /* pointer to the properties_info hashtable destructor */ 53 59 dtor_func_t properties_info_dtor = NULL; … … 277 283 restore_zval(p TSRMLS_CC); 278 284 /* hrak: reset refcount to make sure there is one reference to this val, and prevent memleaks */ 279 p->refcount = 1;285 RESET_PZVAL_REFCOUNT(p); 280 286 return p; 281 287 } … … 539 545 to->try_catch_array = from->try_catch_array; 540 546 to->last_try_catch = from->last_try_catch; 547 #ifdef ZEND_ENGINE_2_3 548 to->this_var = from->this_var; 549 #else 541 550 to->uses_this = from->uses_this; 551 #endif 542 552 543 553 to->line_start = from->line_start; … … 556 566 Bucket *p = to->static_variables->pListHead; 557 567 while (p != NULL) { 558 ((zval *) (p->pDataPtr))->refcount = 1;568 RESET_PZVAL_REFCOUNT((zval*) p->pDataPtr); 559 569 p = p->pListNext; 560 570 }