Changeset 221
- Timestamp:
- 06/27/06 14:49:05 (2 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (7 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r220 r221 4 4 * Fix for bug #109, #31 and SF-1102070 5 5 * Cleaned-up RINIT a bit for hostname determining 6 * Redone the fix for bug #109, don't keep our own list of restored files, 7 we use the included_files hash from the zend engine. 8 * Included the fix from ticket #94 for zts 6 9 7 10 2006-06-26 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> eaccelerator/trunk/eaccelerator.c
r220 r221 936 936 EAG(used_entries) = (void*)used; 937 937 EAG(mem) = op_array->filename; 938 /* only restore the classes and functions when we restore this script 939 * for the first time. 940 */ 941 if (!zend_hash_exists(&EAG(restored), p->realfilename, strlen(p->realfilename))) { 942 for (e = p->c_head; e!=NULL; e = e->next) { 938 /* if a scripts has been restored, don't restore the functions and classes again */ 939 if (!zend_hash_exists(&EG(included_files), op_array->filename, strlen(op_array->filename) + 1)) { 940 for (e = p->c_head; e!=NULL; e = e->next) { 943 941 restore_class(e TSRMLS_CC); 944 942 } … … 946 944 restore_function(e TSRMLS_CC); 947 945 } 948 zend_hash_add(&EAG(restored), p->realfilename, strlen(p->realfilename), NULL, 0, NULL); 949 } 950 EAG(mem) = p->realfilename; 946 } 947 EAG(mem) = p->realfilename; 951 948 } 952 949 } … … 1258 1255 realname[0] = '\000'; 1259 1256 #endif 1260 1261 1257 DBG(ea_debug_start_time, (&tv_start)); 1262 1258 DBG(ea_debug_printf, (EA_DEBUG, "[%d] Enter COMPILE\n",getpid())); … … 2003 1999 return FAILURE; 2004 2000 } 2005 /*??? FIXME2006 ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, eaccelerator_globals_dtor);2007 */2008 2001 ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, NULL); 2009 2002 REGISTER_INI_ENTRIES(); … … 2077 2070 ea_debug_shutdown(); 2078 2071 UNREGISTER_INI_ENTRIES(); 2079 #ifndef ZTS 2072 #ifdef ZTS 2073 ts_free_id(eaccelerator_globals_id); 2074 #else 2080 2075 eaccelerator_globals_dtor(&eaccelerator_globals TSRMLS_CC); 2081 2076 #endif … … 2137 2132 } 2138 2133 2139 /* initialise the hash that contains the restored files */2140 zend_hash_init(&EAG(restored), 0, NULL, NULL, 0);2141 2142 2134 DBG(ea_debug_printf, (EA_DEBUG, "[%d] Leave RINIT\n",getpid())); 2143 2135 #ifdef DEBUG … … 2171 2163 return SUCCESS; 2172 2164 } 2173 ea_debug_hash_display(&EAG(restored));2174 zend_hash_destroy(&EAG(restored));2175 2165 #ifdef WITH_EACCELERATOR_CRASH_DETECTION 2176 2166 #ifdef SIGSEGV eaccelerator/trunk/eaccelerator.h
r220 r221 449 449 char *allowed_admin_path; 450 450 HashTable strings; 451 HashTable restored;452 451 zend_class_entry *class_entry; 453 452 mm_cond_entry *cond_list;