Changeset 506 for trunk/utils.c
- Timestamp:
- 01/05/2008 04:45:48 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/utils.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r504 r506 425 425 426 426 #ifdef HAVE_XCACHE_CONSTANT 427 void xc_install_constant(char *filename, zend_constant *constant, zend_uchar type, zstr key, uint len TSRMLS_DC) /* {{{ */427 void xc_install_constant(char *filename, zend_constant *constant, zend_uchar type, zstr key, uint len, ulong h TSRMLS_DC) /* {{{ */ 428 428 { 429 429 if (zend_u_hash_add(EG(zend_constants), type, key, len, … … 445 445 /* }}} */ 446 446 #endif 447 void xc_install_function(char *filename, zend_function *func, zend_uchar type, zstr key, uint len TSRMLS_DC) /* {{{ */447 void xc_install_function(char *filename, zend_function *func, zend_uchar type, zstr key, uint len, ulong h TSRMLS_DC) /* {{{ */ 448 448 { 449 449 zend_bool istmpkey; … … 475 475 } 476 476 /* }}} */ 477 ZESW(xc_cest_t *, void) xc_install_class(char *filename, xc_cest_t *cest, int oplineno, zend_uchar type, zstr key, uint len TSRMLS_DC) /* {{{ */477 ZESW(xc_cest_t *, void) xc_install_class(char *filename, xc_cest_t *cest, int oplineno, zend_uchar type, zstr key, uint len, ulong h TSRMLS_DC) /* {{{ */ 478 478 { 479 479 zend_bool istmpkey; … … 487 487 #endif 488 488 if (istmpkey) { 489 zend_u_hash_ update(CG(class_table), type, key, len,489 zend_u_hash_quick_update(CG(class_table), type, key, len, h, 490 490 cest, sizeof(xc_cest_t), 491 491 ZESW(&stored_ce_ptr, NULL) … … 495 495 } 496 496 } 497 else if (zend_u_hash_ add(CG(class_table), type, key, len,497 else if (zend_u_hash_quick_add(CG(class_table), type, key, len, h, 498 498 cest, sizeof(xc_cest_t), 499 499 ZESW(&stored_ce_ptr, NULL) … … 685 685 zend_constant *c = (zend_constant*) b->pData; 686 686 xc_install_constant(sandbox->filename, c, 687 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength TSRMLS_CC);687 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength, b->h TSRMLS_CC); 688 688 b = b->pListNext; 689 689 } … … 695 695 zend_function *func = (zend_function*) b->pData; 696 696 xc_install_function(sandbox->filename, func, 697 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength TSRMLS_CC);697 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength, b->h TSRMLS_CC); 698 698 b = b->pListNext; 699 699 } … … 703 703 while (b != NULL) { 704 704 xc_install_class(sandbox->filename, (xc_cest_t*) b->pData, -1, 705 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength TSRMLS_CC);705 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY_S(b)), b->nKeyLength, b->h TSRMLS_CC); 706 706 b = b->pListNext; 707 707 }

