$search->addRange('size',null,$size); 正常返回小于$size的列表 $search->addRange('size','',$size); 习惯性用到的''则不行 必须为null对象 希望遇到这个问题的同仁少走弯路 哈 检查代码多次 文档上才发现 http://www.xunsearch.com/doc/php/api/...
...DECLARE_MODULE_GLOBALS(scws); static zend_module_dep scws_deps[] = { {NULL, NULL, NULL} }; zend_module_entry scws_module_entry = { #if ZEND_MODULE_API_NO >= 20050922 STANDARD_MODULE_HEADER_EX, NULL, scws_deps, #else STANDARD_MODULE_HEADER, #endif "scws", scws_functions, PHP_M...
... -- CREATE TABLE IF NOT EXISTS `sample` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `subject` varchar(1024) NOT NULL, `message` text NOT NULL, `dateline` int(12) unsigned NOT NULL, `author` varchar(1024) NOT NULL, `authorid` int(12) unsigned NOT NULL, `tid` int(12) unsi...
... **** } // free at ! free(at); top = NULL; if (cnt > 0) { --- 1328,1335 ---- } // free at ! if (at != NULL) ! free(at); top = NULL; if (cnt > 0) { *************** *** 139...
...arch->setQuery($var) if(条件){ $search->addRange('num',intval($ex_num),null); } $search->search(); $search->getQuery()//[color=#0000CD]这里打印出是[/color][color=#FF0000]null[/color] 为什么是null呢?这样就查不出东西啦 help~~~:huh::huh::huh: -----------------------------...
... SCWS_NA; scws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) !=...
... 10:38:49.409846632 +0800 @@ -60,6 +60,9 @@ s->mblen = charset_table_get(NULL); s->off = s->len = 0; s->wend = -1; + + /* set default, shuying.lee adds it */ + scws_use_rule(s, 1); return s; } @@ -141,6 +144,16 @@ s->mode &= ~SCWS_IGN_SYMBOL; } +/* shuying.lee adds it */ +void scws...
... SCWS_NA; scws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) !=...
...----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-----------------------+------+-----+---------+----------------+ | did | mediumint(8) unsigned | NO | PRI | NULL | auto_increment | | cid | int...
...,368 **** --- 359,370 ---- if (!(fullpath = expand_filepath(filepath, NULL TSRMLS_CC))) RETURN_FALSE; + #if PHP_API_VERSION < 20100412 if (PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { efree(fullpath); RETURN_FALSE; } + #endif ...