Skip to content

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

@ai80233407

Description

@ai80233407

位置 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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions