Show
Ignore:
Timestamp:
06/20/08 11:20:17 (4 months ago)
Author:
bart
Message:

First stab at php 5.3 support. Only fixes the script cache. phpMyAdmin seems to work with these changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ea_store.c

    r344 r348  
    4747inline 
    4848#endif 
     49#ifdef ZEND_ENGINE_2_3 
     50static size_t calc_string(const char *str, int len TSRMLS_DC) 
     51#else 
    4952static size_t calc_string(char *str, int len TSRMLS_DC) 
     53#endif 
    5054{ 
    5155    if (len > MAX_DUP_STR_LEN ||  
     
    324328    EACCELERATOR_ALIGN((*at)); 
    325329 
     330#ifdef ZEND_ENGINE_2_3 
     331static inline char *store_string(char **at, const char *str, int len TSRMLS_DC) 
     332#else 
    326333static inline char *store_string(char **at, char *str, int len TSRMLS_DC) 
     334#endif 
    327335{ 
    328336    char *p; 
     
    553561    to->try_catch_array = from->try_catch_array; 
    554562    to->last_try_catch = from->last_try_catch; 
     563#ifdef ZEND_ENGINE_2_3 
     564    to->this_var = from->this_var; 
     565#else 
    555566    to->uses_this = from->uses_this; 
     567#endif 
    556568    if (from->try_catch_array != NULL) { 
    557569        to->try_catch_array = (zend_try_catch_element *)ALLOCATE(at, sizeof(zend_try_catch_element) * from->last_try_catch);