...public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSException('SQLITE3 ERROR(#' . $this->obj->lastErrorCode() . '): ' . $this->obj->lastErrorMsg()); } if (!is_object($res)) { $ret = $res; } else ...
...re没问题,make出现了一个错误,如下提示 ibtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. 刚...
....php#L283 (显示) public function setDict($fpath, $mode = null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } $this->_setting['set_dict'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DICT, $mode, $fpath); unset($...
...s.php#L93 (显示) public function getField($name, $throw = true){ if (is_int($name)) { if (!isset($this->_vnoMap[$name])) { if ($throw === true) { throw new XSException('Not exists field with vno: `' . $name . '\''); } return false; ...
...>attr, attr_un); --- > strcpy(wmap[i][i]->attr, SCWS_IS_ALPHA(txt[start-1]) ? attr_en : attr_un); // modified by hightman[hr] [root@estar scws-1.1.5]# /usr/local/bin/scws -A -d "/usr/local/scws/etc/dict.xdb" "LG集团5.3%" LG/en 集团/n 5.3/en %/un +--[scws(scws-cli/1.1.5)]--...
...getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, '/'); $to = substr($file, 0, $pos); } for ($rel = '';; $rel .= '../') { if ($from === $to) { br...
....php#L299 (显示) public function addDict($fpath, $mode = null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } if (!isset($this->_setting['add_dict'])) { $this->_setting['add_dict'] = array(); } $this->_setting['ad...
... $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, DIRECTORY_SEPARATOR); $to = substr($file, 0, $pos); } for ($rel = '';; ...
...对像, 参数为词典路径 $pscws = new PSCWS3(); $ignore = $autodis = true; $debug = $stats = false; $pscws->set_ignore_mark($ignore); $pscws->set_autodis($autodis); $pscws->set_debug($debug); $pscws->set_statistics($stats); $pscws->set_dict($dict); //-------这句出现...
...en_basedir restriction in effect. File(C:\Program Files\scws\etc\dict.xdb) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\tld\dede\getwen.php on line 61 Warning: SimpleCWS::set_rule() [function.SimpleCWS-set-rule]: open_basedir restriction in effec...