[英]Unable to Upgrade PHP Language 7.3x to 7.4x in Flexible App Engine
Flexible App Engine, says that to specify a PHP language at runtime, it must be specified in the composer as such ( https://cloud.google.com/appengine/docs/flexible/php/runtime ): GCP Flexible App Engine,表示要在运行时指定 PHP 语言,必须在作曲家中这样指定( https://cloud.google.com/appengine/docs/flexible/php/runtime ): GCP
We have the same set up in out YML file and in our composer to specify the PHP language that looks like this:我们在 YML 文件和我们的作曲家中进行了相同的设置,以指定 PHP 语言,如下所示:
"require": {
"php": "^7.4",
}
When we run out bitbucket pipeline, it runs successfully, but it tells us that the PHP language has not been specified when it has.当我们运行 bitbucket 管道时,它运行成功,但是它告诉我们 PHP 语言没有指定时指定。 Can someone please explain how we can successfully set our PHP language in App Engine Flexible Environment.
有人能解释一下我们如何在 App Engine 柔性环境中成功设置 PHP 语言吗?
Bitbucket Pipeline Bitbucket 管道
We have tried specifying it in the config like this.我们试过像这样在配置中指定它。
"config": {
"platform": {
"php": "7.4"
},
We have tried specifying the language in the YML file like this.我们试过像这样在 YML 文件中指定语言。
runtime: php74
env: flex
Please assist.请协助。
From ( an archived copy ) of the reference URL provided in your question:来自您问题中提供的参考文献 URL 的( 存档副本):
When you specify the PHP version, use the format
MAJOR.MINOR.*
and do not specify the release version.当您指定 PHP 版本时,请使用格式
MAJOR.MINOR.*
并且不要指定发布版本。 The PHP runtime is regularly updated to the latest release version and only supports one release version at a time, so specifying a release version can cause an error.PHP runtime 会定期更新到最新的release 版本,一次只支持一个release 版本,所以指定release 版本会出错。
This bold highlight is already in the quoted docs.这个大胆的亮点已经在引用的文档中。
Given you're using:鉴于您正在使用:
"require": {
"php": "^7.4",
}
Then I'd say:那么我会说:
^MAJOR.MINOR
is not MAJOR.MINOR.*
^MAJOR.MINOR
不是MAJOR.MINOR.*
Under no circumstances I'd consider this configuration to work while not working unless proven that this is not a dead Google API.在任何情况下,我都不会认为此配置在不工作时工作,除非证明这不是死掉的 Google API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.