+++ This bug was initially created as a clone of Bug #1018363 +++ When running a PHP application I am unable to access some environment variables, specifically the OPENSHIFT_POSTGRESQL_DB_* variables. This can be shown by the following code: var_dump($_ENV); # or echo phpinfo(); You can see that the OPENSHIFT_POSTGRESQL_DB_* variables are not present when running this from a web request. These variables are however available when running php from the command line. --- Additional comment from Kevin Cox on 2013-10-11 14:56:07 EDT --- Sorry, forgot to specify that I am using Zend in the description. --- Additional comment from Julie on 2013-10-14 02:14:17 EDT --- Hi Kevin, Just want to double-check if you want to file this bug just for documentation of the product? If only for documentation, could you specify which section of the guide you are filing this bug against and what would you like to be documented? Ex: Is it just a note reminding users that they can only view PHP application environment variables via command line or are there additional commands that you want documented? Many thanks, Julie --- Additional comment from Kevin Cox on 2013-10-14 11:26:10 EDT --- Sorry, I forgot to change it away from docs. I don't know what component it should be in. If this is expected behavior I guess it should be in docs but it seems like these variables should be accessible.
hi Abhishek, Thanks for taking a look at this and please advise if there will be a bug fix or any docs impact. Many thanks, Julie
Unable to reproduce this but in the latest STG(devenv-stage_498), and here is my webpage to list all env vars: http://zendtst1-zwstg.stg.rhcloud.com/env.php and the Postgresql env vars are all listed by both var_dump($_ENV); AND echo phpinfo();
Looks good, any idea when it will become live?
(In reply to Kevin Cox from comment #3) > Looks good, any idea when it will become live? I guess you need to stop and start your app again?
Assigning it to the runtime team to assess if this was a recent change and if there is any impact to the related documentation.
I can confirm that these variables are now available to my app. Thanks!
Tested on devenv_3907. After restarting the app, the expected variables are shown correctly - by both "var_dump($_ENV);" or "echo phpinfo();" Mark the bug as verified.