Changeset 622 for branches/1.3/xcache.c
- Timestamp:
- 07/05/2009 10:18:06 AM (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/xcache.c
r620 r622 556 556 xc_constinfo_t *ci = &p->constinfos[i]; 557 557 xc_install_constant(xce->name.str.val, &ci->constant, 558 UNISW(0, ci->type), ci->key, ci->key_size TSRMLS_CC);558 UNISW(0, ci->type), ci->key, ci->key_size, ci->h TSRMLS_CC); 559 559 } 560 560 #endif … … 564 564 xc_funcinfo_t *fi = &p->funcinfos[i]; 565 565 xc_install_function(xce->name.str.val, &fi->func, 566 UNISW(0, fi->type), fi->key, fi->key_size TSRMLS_CC);566 UNISW(0, fi->type), fi->key, fi->key_size, fi->h TSRMLS_CC); 567 567 } 568 568 … … 581 581 #endif 582 582 xc_install_class(xce->name.str.val, &ci->cest, ci->oplineno, 583 UNISW(0, ci->type), ci->key, ci->key_size TSRMLS_CC);583 UNISW(0, ci->type), ci->key, ci->key_size, ci->h TSRMLS_CC); 584 584 } 585 585 … … 590 590 /* 591 591 zend_auto_global *auto_global; 592 if (zend_u_hash_ find(CG(auto_globals), aginfo->type, aginfo->key, aginfo->key_len+1, (void **) &auto_global)==SUCCESS) {592 if (zend_u_hash_quick_find(CG(auto_globals), aginfo->type, aginfo->key, aginfo->key_len+1, aginfo->h, (void **) &auto_global)==SUCCESS) { 593 593 if (auto_global->armed) { 594 594 auto_global->armed = auto_global->auto_global_callback(auto_global->name, auto_global->name_len TSRMLS_CC); … … 1064 1064 } \ 1065 1065 data->key_size = b->nKeyLength; \ 1066 data->h = b->h; \ 1066 1067 } \ 1067 1068 } while(0) … … 1096 1097 } 1097 1098 data->key_len = b->nKeyLength - 1; 1099 data->h = b->h; 1098 1100 } 1099 1101 } … … 1266 1268 /* }}} */ 1267 1269 1270 #ifdef ZEND_ENGINE_2 1268 1271 /* {{{ xc_gc_op_array_t */ 1269 1272 typedef struct { … … 1277 1280 gc_op_array.num_args = op_array->num_args; 1278 1281 gc_op_array.arg_info = op_array->arg_info; 1282 #ifdef ZEND_ENGINE_2 1279 1283 zend_hash_next_index_insert(&XG(gc_op_arrays), (void *) &gc_op_array, sizeof(gc_op_array), NULL); 1284 #endif 1280 1285 } 1281 1286 /* }}} */ … … 1295 1300 } 1296 1301 /* }}} */ 1302 #endif 1297 1303 1298 1304 /* module helper function */ … … 1501 1507 zend_hash_destroy(&XG(internal_class_table)); 1502 1508 1503 zend_hash_init_ex(&XG(internal_function_table), 100, NULL, CG(function_table)->pDestructor, 1, 0);1504 zend_hash_init_ex(&XG(internal_class_table), 10, NULL, CG(class_table)->pDestructor,1, 0);1505 1506 zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func));1507 zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest));1509 zend_hash_init_ex(&XG(internal_function_table), 100, NULL, NULL, 1, 0); 1510 zend_hash_init_ex(&XG(internal_class_table), 10, NULL, NULL, 1, 0); 1511 1512 zend_hash_copy(&XG(internal_function_table), CG(function_table), NULL, &tmp_func, sizeof(tmp_func)); 1513 zend_hash_copy(&XG(internal_class_table), CG(class_table), NULL, &tmp_cest, sizeof(tmp_cest)); 1508 1514 1509 1515 XG(internal_table_copied) = 1; … … 1523 1529 } 1524 1530 1531 #ifdef ZEND_ENGINE_2 1525 1532 zend_hash_init(&XG(gc_op_arrays), 32, NULL, xc_gc_op_array, 0); 1533 #endif 1526 1534 1527 1535 #if PHP_API_VERSION <= 20041225 … … 1539 1547 { 1540 1548 xc_entry_unholds(TSRMLS_C); 1549 #ifdef ZEND_ENGINE_2 1541 1550 zend_hash_destroy(&XG(gc_op_arrays)); 1551 #endif 1542 1552 xc_gc_expires_php(TSRMLS_C); 1543 1553 xc_gc_expires_var(TSRMLS_C);

