wulijun / php-ext-trie-filter

php extension for spam word filter based on Double-Array Trie tree, it can detect if a spam word exists in a text message. 关键词过滤扩展,用于检查一段文本中是否出现敏感词,基于Double-Array Trie 树实现。
514 stars 167 forks source link

长度错误 #5

Closed ixqbar closed 8 years ago

ixqbar commented 8 years ago

alpha_text = emalloc(sizeof(AlphaChar) * text_len + 1); for (i = 0; i < text_len; i++) { alpha_text[i] = (AlphaChar) text[i]; } alpha_text[text_len] = TRIE_CHAR_TERM;

wulijun commented 8 years ago

resolved