Changeset 917
- Timestamp:
- 06/23/2012 06:49:59 AM (11 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
processor/head.m4 (modified) (1 diff)
-
processor/process.m4 (modified) (4 diffs)
-
processor/processor.m4 (modified) (14 diffs)
-
processor/struct.m4 (modified) (4 diffs)
-
utils.c (modified) (2 diffs)
-
xcache.c (modified) (24 diffs)
-
xcache.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/head.m4
r878 r917 63 63 typedef zend_trait_precedence *zend_trait_precedence_ptr; 64 64 #endif 65 66 typedef zend_uchar xc_zval_data_type; 65 #ifdef ZEND_ENGINE_2_3 66 typedef int last_brk_cont_t; 67 #else 68 typedef zend_uint last_brk_cont_t; 69 #endif 70 71 typedef zend_uchar xc_zval_type_t; 67 72 typedef int xc_op_type; 68 73 typedef zend_uchar xc_opcode; -
trunk/processor/process.m4
r860 r917 20 20 ') 21 21 dnl }}} 22 define(`PROCESS_ zval_data_type', `dnl {{{ (1:elm)22 define(`PROCESS_xc_zval_type_t', `dnl {{{ (1:elm) 23 23 IFDPRINT(` 24 24 INDENT() … … 28 28 ') 29 29 dnl }}} 30 define(`PROCESS_ op_type', `dnl {{{ (1:elm)30 define(`PROCESS_xc_op_type', `dnl {{{ (1:elm) 31 31 IFDPRINT(` 32 32 INDENT() … … 36 36 ') 37 37 dnl }}} 38 define(`PROCESS_ opcode', `dnl {{{ (1:elm)38 define(`PROCESS_xc_opcode', `dnl {{{ (1:elm) 39 39 IFDPRINT(` 40 40 INDENT() … … 66 66 , `$1', `xc_entry_type_t', `PROCESS_SCALAR(`$2', `d', `$1')' 67 67 , `$1', `xc_hash_value_t', `PROCESS_SCALAR(`$2', `lu', `$1')' 68 , `$1', `last_brk_cont_t', `PROCESS_SCALAR(`$2', `d', `$1')' 68 69 69 70 , `$1', `xc_ztstring', `PROCESS_xc_ztstring(`$2')' 70 , `$1', `xc_zval_ data_type', `PROCESS_zval_data_type(`$2')'71 , `$1', `xc_op_type', `PROCESS_ op_type(`$2')'72 , `$1', `xc_opcode', `PROCESS_ opcode(`$2')'71 , `$1', `xc_zval_type_t', `PROCESS_xc_zval_type_t(`$2')' 72 , `$1', `xc_op_type', `PROCESS_xc_op_type(`$2')' 73 , `$1', `xc_opcode', `PROCESS_xc_opcode(`$2')' 73 74 , `$1', `opcode_handler_t', `/* is copying enough? */COPY(`$2')' 74 75 , `$1', `xc_md5sum_t', `COPY(`$2')' -
trunk/processor/processor.m4
r880 r917 141 141 dnl }}} 142 142 DONE(value) 143 PROCESS(xc_zval_ data_type, type)143 PROCESS(xc_zval_type_t, type) 144 144 #ifdef ZEND_ENGINE_2_3 145 145 PROCESS(zend_uchar, is_ref__gc) … … 380 380 381 381 #ifdef ZEND_ENGINE_2_4 382 STRUCT_ARRAY( default_properties_count, zval_ptr_nullable, default_properties_table)382 STRUCT_ARRAY(int, default_properties_count, zval_ptr_nullable, default_properties_table) 383 383 PROCESS(int, default_properties_count) 384 STRUCT_ARRAY( default_static_members_count, zval_ptr_nullable, default_static_members_table)384 STRUCT_ARRAY(int, default_static_members_count, zval_ptr_nullable, default_static_members_table) 385 385 PROCESS(int, default_static_members_count) 386 386 IFCOPY(`dst->static_members_table = dst->default_static_members_table;') … … 411 411 COPYNULL(traits) 412 412 COPYZERO(num_traits) 413 STRUCT_ARRAY(, zend_trait_alias_ptr, trait_aliases)414 STRUCT_ARRAY(, zend_trait_precedence_ptr, trait_precedences)413 STRUCT_ARRAY(, , zend_trait_alias_ptr, trait_aliases) 414 STRUCT_ARRAY(, , zend_trait_precedence_ptr, trait_precedences) 415 415 # endif 416 416 #else … … 716 716 STRUCT_P(HashTable, static_variables, HashTable_zval_ptr) 717 717 #ifdef ZEND_ENGINE_2 718 STRUCT_ARRAY( num_args, zend_arg_info, arg_info)718 STRUCT_ARRAY(zend_uint, num_args, zend_arg_info, arg_info) 719 719 gc_arg_info = 1; 720 720 #endif … … 793 793 #ifdef ZEND_ENGINE_2 794 794 PROCESS(zend_uint, fn_flags) 795 STRUCT_ARRAY( num_args, zend_arg_info, arg_info)795 STRUCT_ARRAY(zend_uint, num_args, zend_arg_info, arg_info) 796 796 PROCESS(zend_uint, num_args) 797 797 PROCESS(zend_uint, required_num_args) … … 833 833 #ifdef ZEND_ENGINE_2_4 834 834 dnl used when copying opcodes 835 STRUCT_ARRAY( last_literal, zend_literal, literals)835 STRUCT_ARRAY(int, last_literal, zend_literal, literals) 836 836 PROCESS(int, last_literal) 837 837 #endif 838 838 839 839 dnl uses literals 840 STRUCT_ARRAY( last, zend_op, opcodes)840 STRUCT_ARRAY(zend_uint, last, zend_op, opcodes) 841 841 PROCESS(zend_uint, last) 842 842 #ifndef ZEND_ENGINE_2_4 … … 845 845 846 846 #ifdef IS_CV 847 STRUCT_ARRAY( last_var, zend_compiled_variable, vars)847 STRUCT_ARRAY(int, last_var, zend_compiled_variable, vars) 848 848 PROCESS(int, last_var) 849 849 # ifndef ZEND_ENGINE_2_4 … … 859 859 PROCESS(zend_uint, T) 860 860 861 STRUCT_ARRAY(last_brk_cont , zend_brk_cont_element, brk_cont_array)862 PROCESS( zend_uint, last_brk_cont)861 STRUCT_ARRAY(last_brk_cont_t, last_brk_cont, zend_brk_cont_element, brk_cont_array) 862 PROCESS(last_brk_cont_t, last_brk_cont) 863 863 #ifndef ZEND_ENGINE_2_4 864 864 PROCESS(zend_uint, current_brk_cont) … … 869 869 870 870 #ifdef ZEND_ENGINE_2 871 STRUCT_ARRAY( last_try_catch, zend_try_catch_element, try_catch_array)871 STRUCT_ARRAY(int, last_try_catch, zend_try_catch_element, try_catch_array) 872 872 PROCESS(int, last_try_catch) 873 873 #endif … … 997 997 #ifdef ZEND_ENGINE_2_4 998 998 PROCESS(zend_uint, literalinfo_cnt) 999 STRUCT_ARRAY( literalinfo_cnt, xc_op_array_info_detail_t, literalinfos)999 STRUCT_ARRAY(zend_uint, literalinfo_cnt, xc_op_array_info_detail_t, literalinfos) 1000 1000 #else 1001 1001 PROCESS(zend_uint, oplineinfo_cnt) 1002 STRUCT_ARRAY( oplineinfo_cnt, xc_op_array_info_detail_t, oplineinfos)1002 STRUCT_ARRAY(zend_uint, oplineinfo_cnt, xc_op_array_info_detail_t, oplineinfos) 1003 1003 #endif 1004 1004 ') … … 1035 1035 PROCESS(zend_uint, methodinfo_cnt) 1036 1036 IFRESTORE(`COPY(methodinfos)', ` 1037 STRUCT_ARRAY( methodinfo_cnt, xc_op_array_info_t, methodinfos)1037 STRUCT_ARRAY(zend_uint, methodinfo_cnt, xc_op_array_info_t, methodinfos) 1038 1038 ') 1039 1039 IFRESTORE(` … … 1103 1103 #ifdef HAVE_XCACHE_CONSTANT 1104 1104 PROCESS(zend_uint, constinfo_cnt) 1105 STRUCT_ARRAY( constinfo_cnt, xc_constinfo_t, constinfos)1105 STRUCT_ARRAY(zend_uint, constinfo_cnt, xc_constinfo_t, constinfos) 1106 1106 #endif 1107 1107 1108 1108 PROCESS(zend_uint, funcinfo_cnt) 1109 STRUCT_ARRAY( funcinfo_cnt, xc_funcinfo_t, funcinfos)1109 STRUCT_ARRAY(zend_uint, funcinfo_cnt, xc_funcinfo_t, funcinfos) 1110 1110 1111 1111 PROCESS(zend_uint, classinfo_cnt) 1112 STRUCT_ARRAY( classinfo_cnt, xc_classinfo_t, classinfos, , IFRESTORE(`processor->active_class_index'))1112 STRUCT_ARRAY(zend_uint, classinfo_cnt, xc_classinfo_t, classinfos, , IFRESTORE(`processor->active_class_index')) 1113 1113 #ifdef ZEND_ENGINE_2_1 1114 1114 PROCESS(zend_uint, autoglobal_cnt) … … 1116 1116 COPY(autoglobals) 1117 1117 ', ` 1118 STRUCT_ARRAY( autoglobal_cnt, xc_autoglobal_t, autoglobals)1118 STRUCT_ARRAY(zend_uint, autoglobal_cnt, xc_autoglobal_t, autoglobals) 1119 1119 ') 1120 1120 #endif … … 1124 1124 COPY(compilererrors) 1125 1125 ', ` 1126 STRUCT_ARRAY( compilererror_cnt, xc_compilererror_t, compilererrors)1126 STRUCT_ARRAY(zend_uint, compilererror_cnt, xc_compilererror_t, compilererrors) 1127 1127 ') 1128 1128 #endif -
trunk/processor/struct.m4
r879 r917 172 172 ') 173 173 dnl }}} 174 dnl {{{ STRUCT_ARRAY(1:count , 2:type, 3:elm, 4:name=type, 5:loopcounter)174 dnl {{{ STRUCT_ARRAY(1:count_type, 2:count, 3:type, 4:elm, 5:name=type, 6:loopcounter) 175 175 define(`STRUCT_ARRAY', ` 176 if (SRC(`$ 3')) {176 if (SRC(`$4')) { 177 177 ifelse( 178 `$ 5', `', `inti; pushdef(`LOOPCOUNTER', `i')',179 `', `', `pushdef(`LOOPCOUNTER', `$ 5')')180 pushdefFUNC_NAME(`$ 2', `$4')178 `$6', `', `ifelse(`$1', `', `size_t', `$1') i; pushdef(`LOOPCOUNTER', `i')', 179 `', `', `pushdef(`LOOPCOUNTER', `$6')') 180 pushdefFUNC_NAME(`$3', `$5') 181 181 IFDASM(` 182 182 zval *arr; … … 185 185 186 186 for (LOOPCOUNTER = 0; 187 ifelse(`$ 1', `', `SRC(`$3[LOOPCOUNTER]')',188 `', `', `LOOPCOUNTER < SRC(`$ 1')');187 ifelse(`$2', `', `SRC(`$4[LOOPCOUNTER]')', 188 `', `', `LOOPCOUNTER < SRC(`$2')'); 189 189 ++LOOPCOUNTER) { 190 190 zval *zv; … … 192 192 ALLOC_INIT_ZVAL(zv); 193 193 array_init(zv); 194 FUNC_NAME (zv, &(SRC(`$ 3[LOOPCOUNTER]')) TSRMLS_CC);194 FUNC_NAME (zv, &(SRC(`$4[LOOPCOUNTER]')) TSRMLS_CC); 195 195 add_next_index_zval(arr, zv); 196 196 } 197 add_assoc_zval_ex(dst, ZEND_STRS("$ 3"), arr);197 add_assoc_zval_ex(dst, ZEND_STRS("$4"), arr); 198 198 ', ` 199 199 dnl find count with NULL 200 ifelse(`$ 1', `', `200 ifelse(`$2', `', ` 201 201 size_t count = 0; 202 while (SRC(`$ 3[count]')) {202 while (SRC(`$4[count]')) { 203 203 ++count; 204 204 } … … 206 206 pushdef(`ARRAY_ELEMENT_COUNT', `count') 207 207 ', 208 `', `', `pushdef(`ARRAY_ELEMENT_COUNT', `SRC(`$ 1')')')209 ALLOC(`dst->$ 3', `$2', `ARRAY_ELEMENT_COUNT')208 `', `', `pushdef(`ARRAY_ELEMENT_COUNT', `SRC(`$2')')') 209 ALLOC(`dst->$4', `$3', `ARRAY_ELEMENT_COUNT') 210 210 popdef(`ARRAY_ELEMENT_COUNT') 211 211 212 212 for (LOOPCOUNTER = 0; 213 ifelse(`$ 1', `', `SRC(`$3[LOOPCOUNTER]')',214 `', `', `LOOPCOUNTER < SRC(`$ 1')');213 ifelse(`$2', `', `SRC(`$4[LOOPCOUNTER]')', 214 `', `', `LOOPCOUNTER < SRC(`$2')'); 215 215 ++LOOPCOUNTER) { 216 216 DISABLECHECK(` 217 STRUCT(`$ 2', `$3[LOOPCOUNTER]', `$4')217 STRUCT(`$3', `$4[LOOPCOUNTER]', `$5') 218 218 ') 219 219 } 220 220 dnl the end marker 221 ifelse(`$ 1', `', `IFCOPY(`DST(`$3[LOOPCOUNTER]') = NULL;')')221 ifelse(`$2', `', `IFCOPY(`DST(`$4[LOOPCOUNTER]') = NULL;')') 222 222 ')dnl IFDASM 223 DONE(`$ 3')223 DONE(`$4') 224 224 popdef(`FUNC_NAME') 225 225 popdef(`LOOPCOUNTER') 226 226 } 227 227 else { 228 COPYNULL(`$ 3')229 } 230 ') 231 dnl }}} 228 COPYNULL(`$4') 229 } 230 ') 231 dnl }}} -
trunk/utils.c
r903 r917 176 176 #endif 177 177 case ZEND_JMP: 178 assert(Z_OP(opline->op1).jmp_addr >= op_array->opcodes && Z_OP(opline->op1).jmp_addr - op_array->opcodes< op_array->last);178 assert(Z_OP(opline->op1).jmp_addr >= op_array->opcodes && (zend_uint) (Z_OP(opline->op1).jmp_addr - op_array->opcodes) < op_array->last); 179 179 Z_OP(opline->op1).opline_num = Z_OP(opline->op1).jmp_addr - op_array->opcodes; 180 180 break; … … 189 189 case ZEND_JMP_SET_VAR: 190 190 #endif 191 assert(Z_OP(opline->op2).jmp_addr >= op_array->opcodes && Z_OP(opline->op2).jmp_addr - op_array->opcodes< op_array->last);191 assert(Z_OP(opline->op2).jmp_addr >= op_array->opcodes && (zend_uint) (Z_OP(opline->op2).jmp_addr - op_array->opcodes) < op_array->last); 192 192 Z_OP(opline->op2).opline_num = Z_OP(opline->op2).jmp_addr - op_array->opcodes; 193 193 break; -
trunk/xcache.c
r916 r917 38 38 #include "utils.h" 39 39 40 #define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + ( pentry)->ttl)40 #define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + (time_t) (pentry)->ttl) 41 41 #define CHECK(x, e) do { if ((x) == NULL) { zend_error(E_ERROR, "XCache: " e); goto err; } } while (0) 42 42 #define LOCK(x) xc_lock((x)->lck) … … 464 464 { 465 465 TRACE("ttl %lu, %lu %lu", (zend_ulong) XG(request_time), (zend_ulong) entry->atime, xc_php_ttl); 466 if (XG(request_time) > entry->atime + xc_php_ttl) {466 if (XG(request_time) > entry->atime + (time_t) xc_php_ttl) { 467 467 return 1; 468 468 } … … 481 481 { 482 482 TRACE("interval %lu, %lu %lu", (zend_ulong) XG(request_time), (zend_ulong) cache->last_gc_expires, gc_interval); 483 if (XG(request_time) - cache->last_gc_expires >=gc_interval) {483 if (XG(request_time) >= cache->last_gc_expires + (time_t) gc_interval) { 484 484 ENTER_LOCK(cache) { 485 if (XG(request_time) - cache->last_gc_expires >=gc_interval) {485 if (XG(request_time) >= cache->last_gc_expires + (time_t) gc_interval) { 486 486 cache->last_gc_expires = XG(request_time); 487 487 xc_entry_apply_unlocked(type, cache, apply_func TSRMLS_CC); … … 1192 1192 ulong old_rsid = EG(regular_list).nNextFreeElement; 1193 1193 1194 stream = php_stream_open_wrapper( ZEND_24(NOTHING, (char *)) compiler->filename, "rb", USE_PATH | REPORT_ERRORS | ENFORCE_SAFE_MODE | STREAM_DISABLE_OPEN_BASEDIR, NULL);1194 stream = php_stream_open_wrapper((char *) compiler->filename, "rb", USE_PATH | REPORT_ERRORS | ENFORCE_SAFE_MODE | STREAM_DISABLE_OPEN_BASEDIR, NULL); 1195 1195 if (!stream) { 1196 1196 return FAILURE; … … 1240 1240 { 1241 1241 char *class_name; 1242 int i, class_len; 1242 zend_uint i; 1243 int class_len; 1243 1244 xc_cest_t cest; 1244 1245 xc_entry_data_php_t *php = (xc_entry_data_php_t *) data; … … 1285 1286 static void xc_collect_op_array_info(xc_compiler_t *compiler, xc_const_usage_t *usage, xc_op_array_info_t *op_array_info, zend_op_array *op_array TSRMLS_DC) /* {{{ */ 1286 1287 { 1287 int i; 1288 #ifdef ZEND_ENGINE_2_4 1289 int literalindex; 1290 #else 1291 zend_uint oplinenum; 1292 #endif 1288 1293 xc_vector_t details; 1289 1294 … … 1315 1320 1316 1321 #ifdef ZEND_ENGINE_2_4 1317 for ( i = 0; i < op_array->last_literal; i++) {1318 zend_literal *literal = &op_array->literals[ i];1322 for (literalindex = 0; literalindex < op_array->last_literal; literalindex++) { 1323 zend_literal *literal = &op_array->literals[literalindex]; 1319 1324 zend_uint literalinfo = 0; 1320 1325 if (Z_TYPE(literal->constant) == IS_STRING) { … … 1330 1335 if (literalinfo) { 1331 1336 xc_op_array_info_detail_t detail; 1332 detail.index = i;1337 detail.index = literalindex; 1333 1338 detail.info = literalinfo; 1334 1339 xc_vector_add(xc_op_array_info_detail_t, &details, detail); … … 1339 1344 op_array_info->literalinfos = xc_vector_detach(xc_op_array_info_detail_t, &details); 1340 1345 #else /* ZEND_ENGINE_2_4 */ 1341 for ( i = 0; i < op_array->last; i++) {1342 zend_op *opline = &op_array->opcodes[ i];1346 for (oplinenum = 0; oplinenum < op_array->last; oplinenum++) { 1347 zend_op *opline = &op_array->opcodes[oplinenum]; 1343 1348 zend_uint oplineinfo = 0; 1344 1349 if (Z_OP_TYPE(opline->op1) == IS_CONST) { … … 1370 1375 if (oplineinfo) { 1371 1376 xc_op_array_info_detail_t detail; 1372 detail.index = i;1377 detail.index = oplinenum; 1373 1378 detail.info = oplineinfo; 1374 1379 xc_vector_add(xc_op_array_info_detail_t, &details, detail); … … 1384 1389 void xc_fix_op_array_info(const xc_entry_php_t *entry_php, const xc_entry_data_php_t *php, zend_op_array *op_array, int shallow_copy, const xc_op_array_info_t *op_array_info TSRMLS_DC) /* {{{ */ 1385 1390 { 1386 int i;1387 1388 1391 #ifdef ZEND_ENGINE_2_4 1389 for (i = 0; i < op_array_info->literalinfo_cnt; ++i) { 1390 int index = op_array_info->literalinfos[i].index; 1391 int literalinfo = op_array_info->literalinfos[i].info; 1392 int linteralindex; 1393 1394 for (linteralindex = 0; linteralindex < op_array_info->literalinfo_cnt; ++linteralindex) { 1395 int index = op_array_info->literalinfos[linteralindex].index; 1396 int literalinfo = op_array_info->literalinfos[linteralindex].info; 1392 1397 zend_literal *literal = &op_array->literals[index]; 1393 1398 if ((literalinfo & xcache_literal_is_file)) { … … 1430 1435 } 1431 1436 } 1432 #else 1433 for (i = 0; i < op_array_info->oplineinfo_cnt; ++i) { 1434 int oplineno = op_array_info->oplineinfos[i].index; 1435 int oplineinfo = op_array_info->oplineinfos[i].info; 1437 #else /* ZEND_ENGINE_2_4 */ 1438 zend_uint oplinenum; 1439 1440 for (oplinenum = 0; oplinenum < op_array_info->oplineinfo_cnt; ++oplinenum) { 1441 int oplineno = op_array_info->oplineinfos[oplinenum].index; 1442 int oplineinfo = op_array_info->oplineinfos[oplinenum].info; 1436 1443 zend_op *opline = &op_array->opcodes[oplineno]; 1437 1444 if ((oplineinfo & xcache_op1_is_file)) { … … 1517 1524 } 1518 1525 } 1519 #endif 1526 #endif /* ZEND_ENGINE_2_4 */ 1520 1527 } 1521 1528 /* }}} */ … … 1535 1542 static void xc_free_php(xc_entry_data_php_t *php TSRMLS_DC) /* {{{ */ 1536 1543 { 1537 int i;1544 zend_uint i; 1538 1545 if (php->classinfos) { 1539 1546 for (i = 0; i < php->classinfo_cnt; i ++) { 1540 1547 xc_classinfo_t *classinfo = &php->classinfos[i]; 1541 int j; 1548 zend_uint j; 1549 1542 1550 for (j = 0; j < classinfo->methodinfo_cnt; j ++) { 1543 1551 xc_free_op_array_info(&classinfo->methodinfos[j] TSRMLS_CC); … … 1576 1584 { 1577 1585 zend_op_array *op_array; 1578 int old_constinfo_cnt, old_funcinfo_cnt, old_classinfo_cnt;1586 zend_uint old_constinfo_cnt, old_funcinfo_cnt, old_classinfo_cnt; 1579 1587 zend_bool catched = 0; 1580 1588 … … 1657 1665 /* {{{ shallow copy, pointers only */ { 1658 1666 Bucket *b; 1659 unsignedint i;1660 unsignedint j;1667 zend_uint i; 1668 zend_uint j; 1661 1669 1662 1670 #define COPY_H(vartype, var, cnt, name, datatype) do { \ … … 1779 1787 compiler->new_php.have_early_binding = 0; 1780 1788 { 1781 int i;1789 zend_uint i; 1782 1790 for (i = 0; i < compiler->new_php.classinfo_cnt; i ++) { 1783 1791 compiler->new_php.classinfos[i].oplineno = -1; … … 2125 2133 { 2126 2134 xc_shm_t *shm; 2127 int i;2135 size_t i; 2128 2136 2129 2137 if (xc_php_caches) { … … 2150 2158 { 2151 2159 xc_shm_t *shm; 2152 int i;2160 size_t i; 2153 2161 2154 2162 if (xc_php_caches) { … … 2249 2257 static xc_shm_t *xc_cache_destroy(xc_cache_t **caches, xc_hash_t *hcache) /* {{{ */ 2250 2258 { 2251 int i;2259 size_t i; 2252 2260 xc_cache_t *cache; 2253 2261 xc_shm_t *shm; … … 2282 2290 xc_mem_t *mem; 2283 2291 time_t now = time(NULL); 2284 int i;2292 size_t i; 2285 2293 xc_memsize_t memsize; 2286 2294 … … 2405 2413 static void xc_request_init(TSRMLS_D) /* {{{ */ 2406 2414 { 2407 int i;2415 size_t i; 2408 2416 2409 2417 if (!XG(internal_table_copied)) { … … 2499 2507 #endif 2500 2508 { 2501 int i;2509 size_t i; 2502 2510 2503 2511 if (xcache_globals->php_holds != NULL) { … … 3715 3723 static int xc_config_hash(xc_hash_t *p, char *name, char *default_value) /* {{{ */ 3716 3724 { 3717 int bits, size;3725 size_t bits, size; 3718 3726 char *value; 3719 3727 -
trunk/xcache.h
r898 r917 227 227 typedef ulong xc_hash_value_t; 228 228 typedef struct { 229 int bits;230 int size;231 int mask;229 size_t bits; 230 size_t size; 231 xc_hash_value_t mask; 232 232 } xc_hash_t; 233 233 … … 420 420 time_t dtime; /* deletion time of this entry */ 421 421 zend_ulong hits; 422 longttl;422 zend_ulong ttl; 423 423 424 424 xc_entry_name_t name;

