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

laravel 5.6中使用SwooleFFI偶尔会报错 #16

Open
ai80233407 opened this issue Nov 6, 2021 · 1 comment
Open

laravel 5.6中使用SwooleFFI偶尔会报错 #16

ai80233407 opened this issue Nov 6, 2021 · 1 comment
Labels
question Further information is requested

Comments

@ai80233407
Copy link

位置 93 行
/www/blog/vendor/yurunsoft/chinese-util/src/Chinese/FFIDriver.php
}
else
{
$library = "libchinese_util-php{$phpVersion}.so";
}
}
$library = $clibPath . '/' . $library;
}
$this->ffi = $ffi = PHPFFI::cdef(file_get_contents($clibPath . '/include.h'), $library);
$ffi->init_chinese_util();
$dataPath = \dirname(DIR, 2) . '/data';
if (!$characterDataPath)
{
$characterDataPath = $dataPath . '/charsData.json';
}
if (!$pinyinDataPath)
{
$pinyinDataPath = $dataPath . '/pinyinData.json';
}
这里 -> init_chinese_dict($characterDataPath, $pinyinDataPath);
}

报错信息
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to undefined function Yurun\Util\Chinese\init_chinese_dict()

环境
docker
php-fpm 7.4.1 openresty 1.17

这个问题刷新几次页面就好了,时而好时而坏

@Yurunsoft
Copy link
Owner

更新下php版本先,如果还有问题再反馈

@Yurunsoft Yurunsoft added the question Further information is requested label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants