mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Adds questions docs. (#6310)
Co-authored-by: 李铭昕 <715557344@qq.com> Co-authored-by: Lu Fei <52o@qq52o.cn>
This commit is contained in:
parent
85dffe7f4f
commit
2dd29b3a19
@ -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.
|
@ -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 版本即可解决。
|
@ -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 版本即可解決。
|
@ -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 版本即可解決。
|
Loading…
Reference in New Issue
Block a user