php
php copied to clipboard
Xdebug is enabled by default
I am using the GitHub CI to build and validate Drupal website and part of my workflow looks like this:
jobs:
full:
name: Full (Build, Validate, Test, Deploy)
runs-on: [self-hosted]
container:
image: wodby/drupal-php:8.0
options: --user root
As you see, I don't pass any env variables and according to the docs, xDebug and XHProf should not be loaded, although if I add the following step, it shows xdebug is loaded:
- name: Check if XDebug disabled
run: php -m
Already checked the comments under https://github.com/wodby/php/issues/58, but it didn't help. Is there anything that I am missing?
it's not enabled by default, check your env for PHP_DEBUG env var
$ docker pull wodby/drupal-php:8.0
$ docker run --rm wodby/drupal-php:8.0 sh -c 'php -m | grep -i xdebug'
$ docker run --rm wodby/drupal-php:8.0 sh -c 'cat /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini'
https://github.com/wodby/php/blob/master/8/templates/docker-php-ext-xdebug.ini.tmpl
Sorry, closed by mistake