php - App Engine PHP72 Standard Environment, accessing env_variables in local environment
App Engine's official documentation on Migrating Your App from PHP 5.5 to PHP 7.2 states:
dev_appserver.py is not supported with the PHP 7.2 runtime. To test your application and run it locally, you must download and install PHP 7.2 and set up a web server.
My problem is that running the app locally using PHP's web server does not automatically add theenv_variables
stored inapp.yaml
to the$_SERVER
array.
Answer
Solution:
The following uses
symfony/yaml
to achieve what I'm after: