Changeset 106
- Timestamp:
- 05/23/05 13:03:17 (4 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (3 diffs)
- eaccelerator/trunk/eaccelerator.c (modified) (6 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (2 diffs)
- eaccelerator/trunk/eaccelerator_version.h (modified) (1 diff)
- eaccelerator/trunk/loader.c (modified) (1 diff)
- eaccelerator/trunk/session.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r104 r106 1 2005-05-22 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Bumped version to 0.9.4-dev 4 * Changed hash_mm prototype in eaccelerator.h to non-inline (Compaq c compiler) 5 * Fixes from patch 1206311 + some unused variable clean ups 6 1 7 2005-05-18 Franck Tabary <franck34 at users.sourceforge.net> 2 8 3 9 * released eAccelerator 0.9.3 final 4 10 5 11 2005-05-16 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 12 6 13 * Added --without-eaccelerator-use-inode configure switch to disable the use 7 14 of inode numbers for the hash keys (Feature request 1201159). The default … … 10 17 11 18 2005-05-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 19 12 20 * Compile fix for bug 1201564. 13 21 … … 33 41 34 42 2005-05-09 Franck Tabary <franck34 at users.sourceforge.net> 43 35 44 * released eAccelerator 0.9.3-rc1 36 45 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 eaccelerator/trunk/eaccelerator.h
r101 r106 4 4 +----------------------------------------------------------------------+ 5 5 | Copyright (c) 2004 - 2005 eAccelerator | 6 | http://eaccelerator.net |6 | http://eaccelerator.net | 7 7 +----------------------------------------------------------------------+ 8 8 | This program is free software; you can redistribute it and/or | … … 406 406 void fixup_zval (zval * z TSRMLS_DC); 407 407 408 inline unsigned int hash_mm (const char *data, int len); 408 unsigned int hash_mm(const char *data, int len); 409 409 410 410 # ifdef WITH_EACCELERATOR_EXECUTOR eaccelerator/trunk/eaccelerator_version.h
r103 r106 1 1 #ifndef EACCELERATOR_VERSION 2 #define EACCELERATOR_VERSION "0.9. 3"2 #define EACCELERATOR_VERSION "0.9.4-dev" 3 3 #endif eaccelerator/trunk/loader.c
r95 r106 83 83 zend_bailout(); 84 84 } 85 #ifdef ZEND_ENGINE_286 return (unsigned int)(((temp_variable*)NULL) + var);87 #else88 85 return var; 89 #endif90 86 } 91 87 eaccelerator/trunk/session.c
r99 r106 149 149 char *skey; 150 150 int len; 151 char *tmp;152 151 time_t ttl; 153 152 zval sval; … … 241 240 unsigned char buf[2048]; 242 241 int n; 243 int to_read = entropy_length;242 size_t to_read = entropy_length; 244 243 245 244 while (to_read > 0) { … … 322 321 char *key; 323 322 int len; 324 char *tmp;325 323 time_t ttl; 326 324