Changeset 88
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r19 r88 265 265 #endif 266 266 267 void xc_install_function(char *filename, zend_function *func, zend_uchar type, char*key, uint len TSRMLS_DC) /* {{{ */267 void xc_install_function(char *filename, zend_function *func, zend_uchar type, void *key, uint len TSRMLS_DC) /* {{{ */ 268 268 { 269 269 if (func->type == ZEND_USER_FUNCTION) { 270 if (zend_u_hash_add(CG(function_table), type, key, len, 270 if (*(char *) key == '\0') { 271 zend_u_hash_update(CG(function_table), type, key, len, 272 func, sizeof(zend_op_array), 273 NULL 274 ); 275 } 276 else if (zend_u_hash_add(CG(function_table), type, key, len, 271 277 func, sizeof(zend_op_array), 272 278 NULL … … 285 291 ZESW(void *stored_ce_ptr, NOTHING); 286 292 287 if (zend_u_hash_add(CG(class_table), type, key, len, 293 if (*(char *) key == '\0') { 294 zend_u_hash_update(CG(class_table), type, key, len, 295 cest, sizeof(xc_cest_t), 296 ZESW(&stored_ce_ptr, NULL) 297 ); 298 } 299 else if (zend_u_hash_add(CG(class_table), type, key, len, 288 300 cest, sizeof(xc_cest_t), 289 301 ZESW(&stored_ce_ptr, NULL) -
trunk/utils.h
r1 r88 26 26 27 27 /* installer */ 28 void xc_install_function(char *filename, zend_function *func, zend_uchar type, char*key, uint len TSRMLS_DC);28 void xc_install_function(char *filename, zend_function *func, zend_uchar type, void *key, uint len TSRMLS_DC); 29 29 ZESW(xc_cest_t *, void) xc_install_class(char *filename, xc_cest_t *cest, zend_uchar type, void *key, uint len TSRMLS_DC); 30 30 -
trunk/xcache.h
r78 r88 78 78 zend_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) 79 79 80 # define zend_u_hash_update(ht, type, arKey, nKeyLength, pData, nDataSize, pDest) \ 81 zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) 82 80 83 # define zend_u_hash_find(ht, type, arKey, nKeyLength, pData) \ 81 84 zend_hash_find(ht, arKey, nKeyLength, pData)

