GAE standard and flex: support PHP 8

2,725 views
Skip to first unread message

C Mos

unread,
Oct 12, 2020, 9:53:26 AM10/12/20
to Google App Engine
Is GAE standard and flex: support PHP 8 implementation in the current roadmap? Is there an ETA?

Kevin Hirsh

unread,
Oct 13, 2020, 4:58:57 PM10/13/20
to Google App Engine
Hello,

As of now, the Cloud Platform support team cannot comment on the roadmap of GCP products and other such related issues.

We apologize for the inconvenience!

Kevin Hirsh

unread,
Oct 13, 2020, 6:01:06 PM10/13/20
to Google App Engine
Hello,

Although I do understand that this can be frustrating news, I have gone ahead and submitted Public Feature Requests for PHP 8's possible integration in the future. Please note that there is no guarantee of implementation for Feature Requests nor is there a ETA.

Please follow along the Public Tracker for the Standard and Flexible runtimes as all updates from the App Engine specialist team will be found there.

Message has been deleted

A M

unread,
Dec 22, 2021, 4:00:13 AM12/22/21
to Google App Engine
Dear Kevin,
             Any updates on this? The public tracker shows no updates and it has been over 12 months since you first created these? In the meanwhile, PHP has released 8.1. Do we need to create separate trackers for PHP 8.1 too?

Felipe Bergallo Corral

unread,
Dec 27, 2021, 7:53:35 AM12/27/21
to Google App Engine
Hey there,
There are no public updates at this time - the team is currently still working on this.

As for PHP 8.1, since it is a minor version I don't believe that a separate tracker is required for it. If it is, said tracker will likely be created once this first tracker is set as `Closed` (more specifically I believe the correct status would be either `Fixed` or `Fixed (Verified)`)

Kind regards,

A M

unread,
Dec 30, 2021, 12:36:45 PM12/30/21
to Google App Engine
Thank you for the update.
Regards.

Florian Krauthan

unread,
Jan 11, 2022, 3:22:20 AM1/11/22
to Google App Engine
I was wondering as well if this can be somehow expedited. PHP 7.4 is out of active support since a month (28 Nov 2021) and will be out of security support in ten months (28 Nov 2022). It is also a bit scary that PHP 7.2 is still offered which is out of security support since more than half a year!

Lluis Munoz Ladron de Guevara

unread,
Jan 11, 2022, 5:14:32 AM1/11/22
to Google App Engine
Hi, 

I understand your concerns about PHP 7.2 being available in GAE even though it's out of security support. 
However, please note that according to the terms of service Google has to notify 12 months before discontinuing any Service. 

Florian Krauthan

unread,
Jan 11, 2022, 5:09:59 PM1/11/22
to Google App Engine
Yeah that makes sense. But given that PHP 7.2 is still not even deprecated (at least based on documentation) and PHP 7.4 soon reaching the official deprecation from the PHP team without an alternative on App Engine is concerning. Like obviously if anyone wanna use PHP 7.2 thats there business but I feel like Google could at least pro-active warn about using PHP 7.2 instead PHP 7.4 and hopefully provide soon PHP 8.0 and 8.1 support so people can use a PHP version that is actively maintained.

Lluis Munoz Ladron de Guevara

unread,
Jan 13, 2022, 9:27:19 AM1/13/22
to Google App Engine
I think your point makes sense and I agree that warning people who use deprecated software could be useful. 

I looked if there were any feature request with that or a similar idea but I wasn't able to find any.
I'd like to encourage you to create a feature request explaining your idea of warning people who use deprecated versions of software.

Tom Sykes

unread,
Jan 27, 2022, 9:49:53 AM1/27/22
to Google App Engine
Spotted this today while trying to investigate a separate issue

I've tried deploying a test using php81 as the runtime, but it doesn't work.

Does this mean php 8.1 support is coming? Does anyone have a timeframe for public availability?

Tom Sykes

unread,
Jan 27, 2022, 9:55:19 AM1/27/22
to Google App Engine
In fact, if I deploy with a runtime that really doesn't exist, I get the following error which lists php81 as an option (but it doesn't work)

```
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Invalid runtime 'php80' specified. Accepted runtimes are: [php, php55, python27, java, java7, java8, dotnet3, go111, go112, go113, go114, go115, go116, java11, java17, nodejs10, nodejs12,
 nodejs14, nodejs16, php72, php73, php74, php81, python37, python38, python39, python310, ruby25, ruby26, ruby27, ruby30, gcf preprod, gcf prod, gcf staging, java8 canary, php55 canary]
```

Jofre Riba Sánchez

unread,
Jan 27, 2022, 10:34:42 AM1/27/22
to google-a...@googlegroups.com
you could try to deploy through the API, skipping the CLI: https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/create?apix=true&apix_params=%7B%22appsId%22%3A%22%3CYOUR-APP-ID%3E%22%2C%22servicesId%22%3A%22php81%22%2C%22resource%22%3A%7B%22id%22%3A%221%22%2C%22runtime%22%3A%22php81%22%2C%22env%22%3A%22standard%22%2C%22deployment%22%3A%7B%22files%22%3A%7B%22index.php%22%3A%7B%22sourceUrl%22%3A%22https%3A%2F%2Fstorage.googleapis.com%2Fbucket%2Fobject%22%2C%22sha1Sum%22%3A%22sha1%22%7D%7D%7D%7D%7D

Interestingly, when I try, the error it gives me is this one:
{
  "error": {
    "code": 400,
    "message": "Invalid runtime 'php81' specified. Accepted runtimes are: [php, php55, python27, java, java7, java8, nodejs8, php72, nodejs16, java11, php74, php73, go116, nodejs10, go114, go115, go112, nodejs14, python38, go113, python37, nodejs12, go111, python39, ruby27, ruby26, ruby25]",
    "status": "INVALID_ARGUMENT"
  }
}

Note that the API does not give me PHP81 as valid, which is different from you (and you also seem to have a bunch of additional canary/preprod options that do not appear for me).

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c977fdc5-9a15-41da-8c75-bb11cd0c996fn%40googlegroups.com.

David (Cloud Platform Support)

unread,
Jan 27, 2022, 5:08:44 PM1/27/22
to Google App Engine
Please follow the official feature request for PHP 8.0 support for GAE standard and GAE flex. You are able to subscribe to it, if you would like to receive updates about its progress. You can also periodically check the GAE standard and GAE flex PHP release notes to find out whether PHP support for a new version was officially added.

A M

unread,
Feb 15, 2022, 11:33:50 PM2/15/22
to Google App Engine
Hi David,
            The link you provided to "periodically check the GAE standard and GAE flex PHP release notes" seems to link to PHP 5.5 release notes. Are these still the ones to follow for PHP 8 updates? The page does not even highlight the PHP 7.4 release so was wondering if there is any other page to monitor?

Felipe Bergallo Corral

unread,
Feb 22, 2022, 6:10:36 AM2/22/22
to Google App Engine
Hey there,

The link provided by David was using the Flexible URL and changing it to Standard, so by default it linked to PHP 5, which is the older version for GAE Standard. By simply changing the php in the url to php7 , you can get the changelog for PHP 7 on GAE Standard.

The link to Flexible is for all PHP versions, since it focuses support on the latest versions (according to the docs). The release-notes will include mention of when PHP 8 is supported on Flexible, as it previously did with PHP 7.

If you'd rather not have to manually monitor these pages,  you can use the URL's of these pages in your Feed Reader or use the feed URL's for these pages to add them directly (For standard it's this and for flexible it's this).

A M

unread,
Feb 22, 2022, 9:33:31 AM2/22/22
to Google App Engine
Thank you for that information.
Reply all
Reply to author
Forward
0 new messages