Closed wimleers closed 10 months ago
Of course, this seems like an XDebug 3.3.0 regression. But if this a known issue, perhaps it'd be wise to hold off to reduce ecosystem impact?
Hi, as I understand your main issue is that xdebug was enabled because of PHP_XDEBUG=0
(the env var should be unset) and despite PHP_XDEBUG_MODE=off
it still affected your build (maybe should be reported at https://bugs.xdebug.org/)
I recommend using this image with the stability tag, e.g. wodby/php:8.1-dev-4.40.9
Thank you! I tried that a minute before I saw your message here — and did it wrong 😅
Did what you suggested 👍
In the 30 mins since reporting this, somebody in Drupal pointed me to https://www.drupal.org/project/drupal/issues/3405976, where this is apparently a thing affecting all Drupal versions but only in certain XDebug modes. Derick himself is present in helping getting this sorted out.
Thanks for the incredibly fast response! 🤯 🙏 😊
Ah, but looks like I can't just do wodby/php:$_TARGET_PHP-dev-4.40.9
because that won't work for PHP 7.4, which I still need to test. Result: Docker failures.
So back to figuring out how to disable XDebug … or perhaps just XDEBUG_MODE=coverage
is sufficient per https://www.drupal.org/project/drupal/issues/3405976#comment-15348344.
Did you try to unset PHP_XDEBUG
env var to completely disable xdebug extension? (this is why we introduced this var in addition to the XDEBUG_MODE
)
Also, I don't know it it's possible in your pipeline, but you can maybe set different image tags for different PHP versions, like the last tag where we still had PHP 7.4 was 4.33.4 which would be wodby/php:7.4-dev-4.33.4
I never set PHP_XDEBUG
. I'm not sure I can unset it in GitLab CI, as described at https://stackoverflow.com/a/55204041.
… but I did just figure out a way to dynamically set the -4.40.9
suffix for only some PHP versions: https://git.drupalcode.org/project/acquia_migrate/-/merge_requests/14/diffs. 👍
👋 Thanks for the awesome work you do with
wodby/php
— it really made my CI setup easy peasy 😊 🙏It's been working great for months. Until today.
CI failures
Crash:
Analysis
🤔 What could be happening? Nothing has changed overnight. 🤯
Yesterday:
Today:
Hence this most likely caused by https://github.com/wodby/php/releases/tag/4.41.0 updating XDebug to
3.3.0
.