You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using Xdebug 3 with develop mode disabled (i.e. for coverage in CI), a warning is triggered inside Symfony\Component\ErrorHandler\Error\FatalError due to this like of code:
So, function_exists is no longer good enough for safeguarding such usage. Also, it seems that checking for xdebug.mode from the ini is not good enough too: https://xdebug.org/docs/develop#mode
You can also set the mode by setting the XDEBUG_MODE environment variable on the command-line; this will take precedence over the xdebug.mode setting, but will no change the value of the xdebug.mode setting.
The text was updated successfully, but these errors were encountered:
…elop mode disabled (Jean85)
This PR was merged into the 4.4 branch.
Discussion
----------
[Debug][ErrorHandler] Avoid warning with Xdebug 3 with develop mode disabled
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#40677
| License | MIT
As reported in #40677, this fix is needed when Xdebug 3 is enabled but its `develop` mode is off.
Commits
-------
0e0639b Avoid warning with Xdebug 3 with develop mode disabled
…h xdebug >= 3.0 when not in develop mode (fmata)
This PR was merged into the 5.4 branch.
Discussion
----------
[ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#40677
| License | MIT
The PR #40787 was rejected because of env var handling in xdebug_mode. xdebug/xdebug#737 allow us to get xdebug_mode in all cases so I think we can merge this PR safely.
Tested on my setup successfully, I have no more warning.
Thanks `@ralphschindler` :)
Commits
-------
a8114fe [ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode
Symfony version(s) affected: at least since 4.4.0
Description
When using Xdebug 3 with
develop
mode disabled (i.e. for coverage in CI), a warning is triggered insideSymfony\Component\ErrorHandler\Error\FatalError
due to this like of code:symfony/src/Symfony/Component/ErrorHandler/Error/FatalError.php
Line 36 in ad8cc12
How to reproduce
develop
modeExample of failure: https://github.com/getsentry/sentry-symfony/pull/475/checks?check_run_id=2247826488#step:9:25
So,
function_exists
is no longer good enough for safeguarding such usage. Also, it seems that checking forxdebug.mode
from the ini is not good enough too: https://xdebug.org/docs/develop#modeThe text was updated successfully, but these errors were encountered: