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:
workerman4 在windows开启worker进程时会使用环境变量中的php版本
你可以使用workerman v5解决这个问题