Hide Forgot
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.
Sorry, forgot to specify that I am using Zend in the description.
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
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.
(In reply to Kevin Cox from comment #3) > 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 Kevin, I've cloned this bug for the broker component. Engineers will determine if this is bug or not and I will update docs accordingly. Many thanks, Julie