Changeset 106 for eaccelerator/trunk/eaccelerator.c
- Timestamp:
- 05/23/05 13:03:17 (4 years ago)
- Files:
-
- eaccelerator/trunk/eaccelerator.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/eaccelerator.c
r94 r106 134 134 135 135 /******************************************************************************/ 136 /* hash mm functions */ 137 /* TODO: insert items sorted in buckets, so searching in buckets goes from */ 138 /* O(n) to O(log n) 136 /* hash mm functions */ 139 137 /******************************************************************************/ 140 138 141 /* Create a key for the scripts hashtable. This is only used when eA can't use142 inodes. */143 139 inline unsigned int hash_mm(const char *data, int len) { 144 140 unsigned int h; … … 1163 1159 /* Calculate the size of a class entry */ 1164 1160 static void calc_class_entry(zend_class_entry* from TSRMLS_DC) { 1165 int i; 1161 /* int i; */ 1166 1162 1167 1163 if (from->type != ZEND_USER_CLASS) { … … 1636 1632 static eaccelerator_class_entry* store_class_entry(zend_class_entry* from TSRMLS_DC) { 1637 1633 eaccelerator_class_entry *to; 1638 int i; 1634 /* int i; */ 1639 1635 1640 1636 EACCELERATOR_ALIGN(MMCG(mem)); … … 2062 2058 2063 2059 #ifdef ZEND_ENGINE_2 2064 int fname_len ;2065 char *fname_lc ;2060 int fname_len = 0; 2061 char *fname_lc = NULL; 2066 2062 #endif 2067 2063 … … 3184 3180 t->opcodes[0].op1.op_type == IS_CONST && 3185 3181 t->opcodes[0].op1.u.constant.type == IS_STRING) { 3186 zend_op_array* new_t ;3182 zend_op_array* new_t = NULL; 3187 3183 zend_bool old_in_compilation = CG(in_compilation); 3188 3184 char* old_filename = CG(compiled_filename); … … 4095 4091 PHP_FE(eaccelerator_crash, NULL) 4096 4092 #endif 4093 #ifdef ZEND_ENGINE_2 4094 {NULL, NULL, NULL, 0U, 0U} 4095 #else 4097 4096 {NULL, NULL, NULL} 4097 #endif 4098 4098 }; 4099 4099