jorge07 / alpine-php

Multi Arch Alpine PHP Docker images. 5.6, 7{0,1,2,3,4}, 8.{1,2,3}
https://hub.docker.com/r/jorge07/alpine-php/
Apache License 2.0
129 stars 54 forks source link

Xdebug remote_host is ignored by remote_connect_back #60

Closed AdrienFelipe closed 3 years ago

AdrienFelipe commented 5 years ago

In your dockerfile you setup the host ip as xdebug _remotehost: https://github.com/jorge07/alpine-php/blob/c3f14879245d680596be25513b2d9052e3874663/7.3/Dockerfile.dev#L32

But you leave the _remote_connectback set to 1 https://github.com/jorge07/alpine-php/blob/c3f14879245d680596be25513b2d9052e3874663/7.3/devfs/etc/php7/conf.d/00_xdebug.ini#L9

While as the documentation explains:

xdebug.remote_connect_back If enabled, the _xdebug.remotehost setting is ignored and Xdebug will try to connect to the client that made the HTTP request.

Therefore, souldn't you want the _remote_connectback set to 0?

jorge07 commented 5 years ago

Hi, sorry for the delay. I'll try to look at this in deep this weekend and back to you with proper information

jorge07 commented 3 years ago

You're right, that's sorted with the last xdebug configuration

jorge07 commented 3 years ago

https://github.com/jorge07/alpine-php/blob/master/8.0/devfs/etc/php8/conf.d/00_xdebug.ini

You're right about the configuration BTW