php.net |  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
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-06 14:35 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-05-06 14:35 UTC] cmb@php.net
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>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 12:03:36 2021 UTC