由于在 xdict.h 中定义 SCWS_WORD_MALLOCED 的值为 0x100 ,而 struct scws_word 中的 flag 为 unsigned char,故导致该 flag 失效从而造成内存泄露,将其值改为 0x80 即可。此 bug 仅存在于 1.1.0 版。(感谢[url=http://www.hightman.cn/bbs/showthread.php?tid=716]backl...
...../:\xampp\htdocs\xunsearch-1.3.0\sdk\php\lib\XS.php(326): XSServer->__con struct(8383, Object(XS)) #3 ../../:\xampp\htdocs\xunsearch-1.3.0\sdk\php\lib\XS.php(240): XS->getIndex() #4 ../../:\xampp\htdocs\xunsearch-1.3.0\sdk\php\util\Indexer.php(155): XSCompone nt->__get('index') #5 {main}
... yes checking for strtok_r... yes checking for mmap... yes checking for struct flock... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating libscws/Makefile config.st...
... \ scws_res_t res; \ res = (scws_res_t) malloc(sizeof(struct scws_result)); \ res->off = o; \ res->idf = i; \ res->len = l; \ [b] if(strncmp(a,"en",2) == 0 || strncmp(a,"nz",2) == 0) { \ word_t w; \ w = xdict_q...
...e adds it */ +PHP_FUNCTION(scws_use_rule) +{ + zend_bool boolset = 1; + + struct php_scws *ps; + zval **tmp; + zval *object = getThis(); + + if (object) { + if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) { + php_error_docref(NULL TSRMLS_CC, E_WARN...
...)->key); } #endif 2、pool.h里char block[0]改为char block[] /* data structure for pool */ struct pheap { int size; int used; char block[]; }; 3、config_win32.h里,改 #define strcasecmp(s1, s2) _stricmp(s1, s2) 为 #define strcasecmp(s1, s2) stricmp(s1, s2) 4、scws.h中,...
...对象可自动转换为通讯字符串, 命令结构参见 C 代码中的 struct xs_cmd 定义, 头部长度为 8字节. Public 属性 隐去继承来的属性 名称类型描述定义于 arg int 获取属性 arg 的值 XSCommand arg1 int 参数1 取值范围 0...
.... yes checking for strndup... yes checking for mmap... yes checking for struct flock... yes configure: creating ./config.status config.status: creating Makefile config.status: creating libscws/Makefile config.status: creating etc/Makefile config.status: creating cli/Makefile config.status: ...