php82 windows.php 提示我 版本过低

xiaoming

问题描述

webman-framework 版本 ^1.6.7

我的系统有多个php版本,默认 7.4.33
但是我安装了其他版本
C:\Users\Administrator\scoop\apps\php82\current\php.exe .\windows.php
返回内容
Workerman version:4.2.1 PHP version:8.2.19 还是报错

重现问题的步骤

---------------------------------------------- WORKERMAN -----------------------------------------------
Workerman version:4.2.1          PHP version:8.2.19
----------------------------------------------- WORKERS ------------------------------------------------
worker                                          listen                              processes   status
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33. in D:\amp\www\webman-tool\vendor\composer\platform_check.php on line 24
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33. in D:\amp\www\webman-tool\vendor\composer\platform_check.php on line 24
Composer detected issues in your platform:
155 1 0
1个回答

walkor 打赏

workerman4 在windows开启worker进程时会使用环境变量中的php版本
你可以使用workerman v5解决这个问题

composer require workerman/workerman v5.0.0-rc.3
  • 暂无评论
×
🔝