How to overcome a bug in docker when connecting to xdebug?

Use docker to docker-compose probressive configure xdebug
 XDEBUG_CONFIG: "remote_enable=1 remote_host= remote_port=9001 idekey=PHPSTORM remote_autostart=1"
 PHP_IDE_CONFIG: "serverName=docker"

I get an error Warning: Header may not contain NUL bytes in /app/public/index.php on line 10
the bug appears when you first use echo or print
understand before what header information is displayed
if the line XDEBUG_CONFIG: "remote_enable=1 remote_host= remote_port=9001 idekey=PHPSTORM comment out, the error disappears

error appeared after upgrading docker, in previous versions this was not
the version of docker 18.09.1
docker-compose 1.21.0
php 7.3
nginx 1.15
March 19th 20 at 09:18
1 answer
March 19th 20 at 09:20
A version of xdebug?
In version >= 2.7.0 was the fix for this error.

Try the value for each variable be placed in single quotation marks if it is not in the version of xdebug
version xdebug-2.7.0beta1
single quotes do not help
I'll try to change the version of xdebug - Jimmie_Dougl commented on March 19th 20 at 09:23
@Jimmie_Dougl, Yes, update to the release. I think will help - Lisa64 commented on March 19th 20 at 09:26
Yes, thank you, after updating to version 2.7.0 the problem was solved - Jimmie_Dougl commented on March 19th 20 at 09:29

Find more questions by tags DockerXdebug