App Engine PHP运行时环境中的环境变量


Environment variables in App Engine PHP runtime environment

是否在PHP运行时禁用app.yaml传递的环境变量?

在1.8.0 SDK运行时中,env变量的定义似乎是正确的,但在生产运行时中,它们似乎从未得到定义。

-- app.yaml --
application: some-app
version: 1
runtime: php
api_version: 1
handlers:
  - url: /
    script: index.php
env_variables:
  APPLICATION_BASE: 'Application/'
-- index.php --
<?PHP
print_r($_SERVER);
print_r($_ENV);

SDK版本正常工作:$_ENV['APPLICATION_BASE']$_SERVER['APPLICATION_BASE']包含"Application/"

没有设置生产环境。

不,我们还没有解决这个问题-你能在问题跟踪器中提交一个问题吗?我们会解决的。

谢谢。