Changeset 24
- Timestamp:
- 12/22/04 10:40:01 (4 years ago)
- Files:
-
- eaccelerator/trunk/eaccelerator.c (modified) (2 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/eaccelerator.c
r23 r24 4863 4863 } 4864 4864 4865 static void eaccelerator_clean_shutdown(void) {4865 static void __attribute__((destructor)) eaccelerator_clean_shutdown(void) { 4866 4866 if (eaccelerator_mm_instance != NULL) { 4867 4867 TSRMLS_FETCH(); … … 5070 5070 #endif 5071 5071 #endif 5072 #ifndef HAS_ATTRIBUTE 5072 5073 atexit(eaccelerator_clean_shutdown); 5074 #endif 5073 5075 } 5074 5076 #if defined(WITH_EACCELERATOR_SESSIONS) && defined(HAVE_PHP_SESSIONS_SUPPORT) eaccelerator/trunk/eaccelerator.h
r21 r24 24 24 +----------------------------------------------------------------------+ 25 25 | Author(s): Dmitry Stogov <dstogov@users.sourceforge.net> | 26 | Everaldo Canuto <everaldo_canuto@yahoo.com.br> | 26 27 +----------------------------------------------------------------------+ 27 28 $Id$ … … 35 36 #include "zend_API.h" 36 37 #include "zend_extensions.h" 38 39 /* Handle __attribute__ for nongcc compilers */ 40 #if (__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) 41 # define HAS_ATTRIBUTE 42 #else 43 # define __attribute__(x) 44 #endif 37 45 38 46 #ifndef ZEND_WIN32