Bug 1018363

Summary: Can't Access Some Environment Variables From Zend
Product: OpenShift Online Reporter: Kevin Cox <bugzilla.redhat.com-2d5c4226>
Component: DocumentationAssignee: Julie <juwu>
Status: CLOSED NOTABUG QA Contact: ecs-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: bugzilla.redhat.com-2d5c4226, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
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 Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1019008    

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