php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73477 Environmental Variables
Submitted: 2016-11-08 14:04 UTC Modified: -
From: smith_it2000 at yahoo dot com Assigned:
Status: Open Package: FPM related
PHP Version: 7.0.13RC1 OS: Ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: smith_it2000 at yahoo dot com
New email:
PHP Version: OS:

 

 [2016-11-08 14:04 UTC] smith_it2000 at yahoo dot com
Description:
------------
Allow the easy programmatic setting of environmental variables for php scripts in FPM.

Such that getenv('var') works.

It could work like this;

Specify a bash or php script in the pool config file, this script is run once when php-fpm starts. The script can be used to set environmental variables that are available to the php script when executed.

Do NOT want to set environmental variables in php-fpm config files. Want the FPM environment to mirror the CLI environment.






Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 08:01:24 2019 UTC