Req #73477 [Opn->Fbk]: Environmental Variables

From: Date: Fri, 28 May 2021 11:12:29 +0000
Subject: Req #73477 [Opn->Fbk]: Environmental Variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234063@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73477&edit=1

 ID:                 73477
 Updated by:         cmb@php.net
 Reported by:        smith_it2000 at yahoo dot com
 Summary:            Environmental Variables
-Status:             Open
+Status:             Feedback
 Type:               Feature/Change Request
 Package:            FPM related
 Operating System:   Ubuntu
 PHP Version:        7.0.13RC1
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Are you looking for the existing option clear_env[1]?

[1] <https://www.php.net/manual/en/install.fpm.configuration.php>


Previous Comments:
------------------------------------------------------------------------
[2016-11-08 14:04:31] 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.







------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73477&edit=1


Thread (3 messages)

« previous php.bugs (#234063) next »