|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81013 Make PHP-FPM's clear_env yes by default
Submitted: 2021-05-05 14:29 UTC Modified: 2021-05-06 14:35 UTC
From: 4dr14n31t0r at gmail dot com Assigned:
Status: Suspended Package: *Configuration Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-05-05 14:29 UTC] 4dr14n31t0r at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-06 14:35 UTC]
-Status: Open +Status: Suspended
 [2021-05-06 14:35 UTC]
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] <>
[2] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 03:01:28 2024 UTC