Ticket #150: php5.2.diff
| File php5.2.diff, 1.5 kB (added by bart, 2 years ago) |
|---|
-
eaccelerator.h
old new 45 45 # define ZEND_ENGINE_2_1 46 46 #endif 47 47 48 #if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 49 # define ZEND_ENGINE_2_2 50 #endif 51 52 53 48 54 /* fixes compile errors on php5.1 */ 49 55 #ifdef STR_EMPTY_ALLOC 50 56 #define empty_string STR_EMPTY_ALLOC() … … 358 364 eaccelerator_none /* don't cache */ 359 365 } eaccelerator_cache_place; 360 366 367 #ifndef align_union 361 368 typedef union align_union { 362 369 double d; 363 370 void *v; 364 371 int (*func)(int); 365 372 long l; 366 373 } align_union; 374 #endif 367 375 376 typedef union _align_test { 377 void *ptr; 378 double dbl; 379 long lng; 380 } align_test; 381 368 382 /******************************************************************************/ 369 383 370 384 #ifdef ZTS -
ea_store.c
old new 778 778 /* Check if this is a parent class. If so, copy unconditionally */ 779 779 if (parent) { 780 780 /* unpack the \0classname\0membername\0 style property name to seperate vars */ 781 #ifdef ZEND_ENGINE_2_2 782 zend_unmangle_property_name(p->arKey, p->nKeyLength, &cname, &mname); 783 #else 781 784 zend_unmangle_property_name(p->arKey, &cname, &mname); 785 #endif 782 786 783 787 /* lookup the member's info in parent and child */ 784 788 if((zend_hash_find(&parent->properties_info, mname, strlen(mname)+1, &pinfo.ptr) == SUCCESS) &&