Bug 1018363 - Can't Access Some Environment Variables From Zend
Summary: Can't Access Some Environment Variables From Zend
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Documentation
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Julie
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1019008
TreeView+ depends on / blocked
 
Reported: 2013-10-11 18:54 UTC by Kevin Cox
Modified: 2015-07-20 00:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1019008 (view as bug list)
Environment:
Build Name: 18397, User Guide-null-1.0 Build Date: 18-09-2013 11:58:44 Topic ID: 18362-491735 [Latest]
Last Closed: 2013-12-10 00:17:24 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kevin Cox 2013-10-11 18:54:36 UTC
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.

Comment 1 Kevin Cox 2013-10-11 18:56:07 UTC
Sorry, forgot to specify that I am using Zend in the description.

Comment 2 Julie 2013-10-14 06:14:17 UTC
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

Comment 3 Kevin Cox 2013-10-14 15:26:10 UTC
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.

Comment 4 Julie 2013-10-14 23:36:04 UTC
(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


Note You need to log in before you can comment on or make changes to this bug.