Changeset 247
- Timestamp:
- 07/27/06 11:43:59 (2 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/ea_restore.c (modified) (1 diff)
- eaccelerator/trunk/ea_store.c (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r246 r247 5 5 * Killing the very broken encoder. Once when eAccelerator is in full 6 6 shape an encoder may return. 7 * Some fixes to make eAccelerator compile with php 5.2, this fixes bug #150 8 * Restore __toString methods correctly with php 5.2 7 9 8 10 2006-07-25 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> eaccelerator/trunk/ea_restore.c
r241 r247 773 773 memcmp(fname_lc, ZEND_CALL_FUNC_NAME, sizeof(ZEND_CALL_FUNC_NAME)) == 0) 774 774 to->__call = f; 775 # ifdef ZEND_ENGINE_2_2 776 else if (fname_len == sizeof(ZEND_TOSTRING_FUNC_NAME) - 1 && 777 memcmp(fname_lc, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)) == 0) 778 to->__tostring = f; 779 # endif 775 780 } 776 781 if (to->parent) { eaccelerator/trunk/ea_store.c
r246 r247 777 777 if (parent) { 778 778 /* unpack the \0classname\0membername\0 style property name to seperate vars */ 779 #ifdef ZEND_ENGINE_2_2 780 zend_unmangle_property_name(p->arKey, p->nKeyLength, &cname, &mname); 781 #else 779 782 zend_unmangle_property_name(p->arKey, &cname, &mname); 783 #endif 780 784 781 785 /* lookup the member's info in parent and child */ eaccelerator/trunk/eaccelerator.h
r246 r247 44 44 #if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1 45 45 # define ZEND_ENGINE_2_1 46 #endif 47 48 #if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 49 # define ZEND_ENGINE_2_2 46 50 #endif 47 51 … … 356 360 } eaccelerator_cache_place; 357 361 362 #ifndef align_union 358 363 typedef union align_union { 359 364 double d; … … 362 367 long l; 363 368 } align_union; 369 #endif 370 371 typedef union _align_test { 372 void *ptr; 373 double dbl; 374 long lng; 375 } align_test; 364 376 365 377 /******************************************************************************/