From 2dd29b3a19481e50114c02ab62c65c8f78167c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=A3=E8=A8=80=E5=B0=B1=E6=98=AFSiam?= <59419979@qq.com> Date: Thu, 23 Nov 2023 11:48:39 +0800 Subject: [PATCH] Adds questions docs. (#6310) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> Co-authored-by: Lu Fei <52o@qq52o.cn> --- docs/en/quick-start/questions.md | 12 ++++++++++++ docs/zh-cn/quick-start/questions.md | 12 ++++++++++++ docs/zh-hk/quick-start/questions.md | 12 ++++++++++++ docs/zh-tw/quick-start/questions.md | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/docs/en/quick-start/questions.md b/docs/en/quick-start/questions.md index ec1815f93..9adcd02e5 100644 --- a/docs/en/quick-start/questions.md +++ b/docs/en/quick-start/questions.md @@ -212,3 +212,15 @@ When an exception occurs during the DI collection phase (for example, a namespac File: xxxx. Exception: xxxx ``` + +## The service can not start because the environment version is inconsistent + +When the project starts, an error similar to the following is thrown + +``` +Hyperf\Engine\Channel::push(mixed $data, float $timeout = -1): bool must be compatible with Swoole\Coroutine\Channel::push($data, $timeout = -1) +``` + +This problem is usually caused by inconsistencies between the Swoole version used when installing frameworks/components and the actual Swoole version used at runtime. + +Should keep the version of Swoole and PHP consistent when installing and using. \ No newline at end of file diff --git a/docs/zh-cn/quick-start/questions.md b/docs/zh-cn/quick-start/questions.md index b5207bc93..48ff74a26 100644 --- a/docs/zh-cn/quick-start/questions.md +++ b/docs/zh-cn/quick-start/questions.md @@ -217,3 +217,15 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php File: xxxx. Exception: xxxx ``` + +## 环境版本不一致导致服务无法启动 + +当项目启动时,抛出类似如下错误时: + +```bash +Hyperf\Engine\Channel::push(mixed $data, float $timeout = -1): bool must be compatible with Swoole\Coroutine\Channel::push($data, $timeout = -1) +``` + +此问题通常是由于实际运行时使用的 Swoole 版本和安装框架/组件时使用的 Swoole 版本不一致导致。 + +使用和安装时相同的 Swoole、PHP 版本即可解决。 \ No newline at end of file diff --git a/docs/zh-hk/quick-start/questions.md b/docs/zh-hk/quick-start/questions.md index a4573c6a0..3afaaab6b 100644 --- a/docs/zh-hk/quick-start/questions.md +++ b/docs/zh-hk/quick-start/questions.md @@ -217,3 +217,15 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php File: xxxx. Exception: xxxx ``` + +## 環境版本不一致導致服務無法啓動 + +當項目啓動時,拋出類似如下錯誤時: + +```bash +Hyperf\Engine\Channel::push(mixed $data, float $timeout = -1): bool must be compatible with Swoole\Coroutine\Channel::push($data, $timeout = -1) +``` + +此問題通常是由於實際運行時使用的 Swoole 版本和安裝框架/組件時使用的 Swoole 版本不一致導致。 + +使用和安裝時相同的 Swoole、PHP 版本即可解決。 \ No newline at end of file diff --git a/docs/zh-tw/quick-start/questions.md b/docs/zh-tw/quick-start/questions.md index 32133296d..f7561684d 100644 --- a/docs/zh-tw/quick-start/questions.md +++ b/docs/zh-tw/quick-start/questions.md @@ -217,3 +217,15 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php File: xxxx. Exception: xxxx ``` + +## 環境版本不一致導致服務無法啟動 + +當專案啟動時,丟擲類似如下錯誤時: + +```bash +Hyperf\Engine\Channel::push(mixed $data, float $timeout = -1): bool must be compatible with Swoole\Coroutine\Channel::push($data, $timeout = -1) +``` + +此問題通常是由於實際執行時使用的 Swoole 版本和安裝框架/元件時使用的 Swoole 版本不一致導致。 + +使用和安裝時相同的 Swoole、PHP 版本即可解決。 \ No newline at end of file