Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php7环境的版本是不是随机的?demo的composer.json php>7.2.5 过了,自己部署的时候挂了 #24

Closed
neyio opened this issue May 9, 2021 · 5 comments
Labels
question Further information is requested

Comments

@neyio
Copy link

neyio commented May 9, 2021

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5". You are running 7.2.2. in /var/user/vendor/composer/platform_check.php on line 24

@yugasun yugasun added the question Further information is requested label May 10, 2021
@yugasun
Copy link
Contributor

yugasun commented May 10, 2021

这个是云函数 Php7 运行环境版本不匹配导致的,可以在执行 composer 安装时,添加 --ignore-platform-reqs 参数,如下:

composer install --ignore-platform-reqs

参考 https://stackoverflow.com/questions/65754407/composer-detected-issues-in-your-platform-your-composer-dependencies-require-a/66616566#66616566

@yugasun yugasun pinned this issue May 10, 2021
@yugasun yugasun closed this as completed May 14, 2021
@wzxaini9
Copy link

wzxaini9 commented Jul 6, 2021

所以我如果在云函数里使用的PHP7.2.2后的新写法函数啥的是不是就报错了?

@yugasun
Copy link
Contributor

yugasun commented Jul 6, 2021

@wzxaini9 是的

@wzxaini9
Copy link

wzxaini9 commented Jul 7, 2021

那能升级下云函数的环境吗?
现在PHP8.0.8都有了。。
起码出个7.4.21的环境吧。

@yugasun
Copy link
Contributor

yugasun commented Jul 7, 2021

@wzxaini9 感谢建议,这个我帮忙反馈下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants