Req #81013 [Opn->Sus]: Make PHP-FPM's clear_env yes by default

From: Date: Thu, 06 May 2021 14:35:08 +0000
Subject: Req #81013 [Opn->Sus]: Make PHP-FPM's clear_env yes by default
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233718@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81013&edit=1 ID: 81013 Updated by: cmb@php.net Reported by: 4dr14n31t0r at gmail dot com Summary: Make PHP-FPM's clear_env yes by default -Status: Open +Status: Suspended Type: Feature/Change Request Package: *Configuration Issues PHP Version: Irrelevant Block user comment: N Private report: N New Comment: In my opinion, the default setting is reasonable, and changing it could cause serious (BC) issues. A better alternative might be to introduce a new setting, which explicitely allows certain environment variables to be kept, even if clear_env is enabled. Anyhow, this feature needs to be discussed, for what this bug tracker is not suitable. So please, either provide a pull request[1] with the suggested implementation, or pursue the RFC process[2]. For the time being, I suspend this ticket. [1] <https://github.com/php/php-src/pulls> [2] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2021-05-05 14:29:37] 4dr14n31t0r at gmail dot com Description: ------------ When configuring XDebug it is a true headache to guess that the debug mode doesn't work because of clear_env's configuration. I think it would be much better if instead the clear_env's value were set to no by default because it is counter intuitive. Else the average developer won't be able to understand why the XDEBUG_CONFIG environment variable is not being used in PHP while using a PHP-FPM docker container. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81013&edit=1

« previous php.bugs (#233718) next »