Changeset 119
- Timestamp:
- 07/09/05 11:29:47 (3 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (2 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r118 r119 2 2 3 3 * A compile fix for php4 (bug #1235017) 4 * Removed atexit code that only produced segfaults and didn't work 5 (Patch from Rob Foehl <rwf at loonybin.net>) 4 6 5 7 2005-07-07 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> eaccelerator/trunk/eaccelerator.c
r116 r119 1768 1768 } 1769 1769 1770 static void __attribute__((destructor)) eaccelerator_clean_shutdown(void) { 1770 #if (__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 91)) 1771 static void __attribute__((destructor)) eaccelerator_clean_shutdown(void) 1772 #else 1773 void _fini(void) 1774 #endif 1775 { 1771 1776 if (eaccelerator_mm_instance != NULL) { 1772 1777 TSRMLS_FETCH(); … … 1968 1973 #endif 1969 1974 #endif 1970 1971 #ifndef HAS_ATTRIBUTE1972 atexit(eaccelerator_clean_shutdown);1973 #endif1974 1975 } 1975 1976 #if defined(WITH_EACCELERATOR_SESSIONS) && defined(HAVE_PHP_SESSIONS_SUPPORT) 1976 if (!eaccelerator_session_registered()) {1977 if (!eaccelerator_session_registered()) { 1977 1978 eaccelerator_register_session(); 1978 }1979 } 1979 1980 #endif 1980 1981 #ifdef WITH_EACCELERATOR_CONTENT_CACHING 1981 eaccelerator_content_cache_startup();1982 eaccelerator_content_cache_startup(); 1982 1983 #endif 1983 1984 if (!eaccelerator_is_zend_extension) { eaccelerator/trunk/eaccelerator.h
r116 r119 36 36 #include "zend_API.h" 37 37 #include "zend_extensions.h" 38 39 /* Handle __attribute__ for nongcc compilers */40 #if (__GNUC__ >= 3) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))41 # define HAS_ATTRIBUTE42 #else43 # define __attribute__(x)44 #endif45 38 46 39 #if !defined(ZEND_WIN32) && defined(HAVE_CONFIG_H)