Skip to content

hardcoded xdebug.mode=debug in generate_conf.php in php:8.0-v4-fpm #242

@kozubsky

Description

@kozubsky

Your issue may already be reported!
After 27.11.2020 It is impossible to use xdebug profiler because PHP_INI_XDEBUG__MODE now is overriden by hardcoded xdebug.mode=debug

Expected Behavior

When I set PHP_INI_XDEBUG__MODE=profile then xdebug.mode=profile is written to ini config file.

Current Behavior

When I set PHP_INI_XDEBUG__MODE=profile (or any other value: off, develop, coverage, gcstats, trace) then xdebug.mode=debug is always written to ini config file.

Possible Solution

make xdebug.mode=debug for example default but not the only option that always overrides any user configuration.

Steps to Reproduce (for bugs)

  1. Provide PHP_INI_XDEBUG__MODE=profile env variable to thecodingmachine/php:8.0-v4-fpm
  2. See phpinfo(); which will show xdebug.mode = debug

Context

Unable to profile PHP script inside thecodingmachine/php:8.0-v4-fpm container

Your Environment

  • Version used: thecodingmachine/php:8.0-v4-fpm
  • Operating System and version: Linux Mint 19.1 Tessa 64 x64
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions