Skip to content

fix: run-tests script with xdebug version >= 3.0.0#6022

Open
santysisi wants to merge 1 commit intoswoole:6.1from
santysisi:fix/run-test-with-xdebug-version-3
Open

fix: run-tests script with xdebug version >= 3.0.0#6022
santysisi wants to merge 1 commit intoswoole:6.1from
santysisi:fix/run-test-with-xdebug-version-3

Conversation

@santysisi
Copy link
Copy Markdown

Fix Xdebug configuration for versions 3.0+

When running ./start.sh with Xdebug 3 or higher, the test suite fails with the following error:

[BORK] Xdebug: [Config] The setting 'xdebug.default_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.default_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)

According to the Xdebug upgrade guide:
https://xdebug.org/docs/upgrade_guide#Changed-Configuration-Settings

The configuration setting has changed in Xdebug 3.

This PR updates the configuration used by the test environment so that when Xdebug version 3.0.0 or higher is detected, xdebug.mode=off is used instead of xdebug.default_enable=0.

This prevents the configuration warning and allows the test suite to run normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant