Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fpm add_dict 不起效果 #96

Open
angelandy opened this issue Jun 11, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@angelandy
Copy link

commented Jun 11, 2019

    $so = scws_new();
    $so->set_charset('utf8');
    $so->set_ignore(true);
    $so->set_dict('/usr/local/scws/bin/dict.utf8.xdb',SCWS_XDICT_XDB);
    $so->add_dict('/usr/local/scws/bin/model_brand.xdb',SCWS_XDICT_XDB);
    $so->send_text($list[0]['content']);
    $new_arr = array();
    while ($tmp = $so->get_result())
    {
        print_r($tmp);
    }
    $so->close();
    var_dump($new_arr);

$so->add_dict('/usr/local/scws/bin/model_brand.xdb',SCWS_XDICT_XDB);
在php cli 下 有效果
在fpm 下没有效果

@angelandy

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

找到原因了,, 原来是词库权限问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.