Changeset 93


Ignore:
Timestamp:
05/10/05 22:03:34 (5 years ago)
Author:
zoeloelip
Message:

Last fix should only be compiled when using zend engine 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eaccelerator/trunk/eaccelerator.c

    r92 r93  
    116116FILE *F_fp; 
    117117 
     118#ifdef ZEND_ENGINE_2 
    118119/* pointer to the properties_info hashtable destructor */ 
    119120static dtor_func_t properties_info_dtor = NULL; 
     121#endif 
    120122 
    121123/* saved original functions */ 
     
    37403742} 
    37413743 
     3744#ifdef ZEND_ENGINE_2 
    37423745/* This function creates a dummy class entry to steal the pointer to the  
    37433746 * properties_info hashtable destructor because it's declared static */ 
     
    37593762  return property_dtor; 
    37603763} 
     3764#endif 
    37613765 
    37623766PHP_MINIT_FUNCTION(eaccelerator) { 
     
    38483852    register_eaccelerator_as_zend_extension(); 
    38493853  } 
    3850    
     3854#ifdef ZEND_ENGINE_2 
    38513855  /* cache the properties_info destructor */ 
    38523856  properties_info_dtor = get_zend_destroy_property_info(TSRMLS_C); 
    3853    
     3857#endif 
    38543858  return SUCCESS; 
    38553859} 
Note: See TracChangeset for help on using the changeset viewer.