View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001967 | Xdebug | Uncategorized | public | 2021-04-22 07:34 | 2022-06-06 10:08 |
Reporter | Patrick Kaiser | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Server | OS | Linux | ||
Summary | 0001967: xdebug.client_discovery_header not working | ||||
Description | I've tried now many times to set the client_discovery_header in xdebug 3.0.4 when running apache + modphp Here is my xdebug config: | ||||
Steps To Reproduce | curl -v -H 'XDEBUG_SESSION: 1' -H 'FORWARD_HOST: 141.1.1.1' -H 'X-HTTPS: on' -H 'Host: www.example.de' <IP-OF-SERVER>:<PORT-OF-APACHE>/phpinfo.php In the output of phpinfo() i can see, that the HTTP HEADER FORWARD_HOST is found and stored with correct test value of 141.1.1.1 The output of apache/xdebug is: (where 10.242.10.3 is my ip from which i am connecting to the apache) | ||||
Tags | No tags attached. | ||||
Operating System | Ubuntu 18.04 | ||||
PHP Version | 8.0.0-8.0.4 | ||||
|
PHP automatically adds xdebug.client_discovery_header = HTTP_FORWARD_HOST Let me know if that does the trick? The documentation is indeed unclear about this, and I will update this. |
|
Sadly it does not do the trick but helped me a step forward ;) FORWARD_HOST was not in var_dump($SERVER). Looks like you need to use different variables. Also there is a weird thingy about using Hope this will safe someone else time ;) thanks for your support derick |
|
I have updated the documentation for this setting and added a warning, to explain this situation: https://xdebug.org/docs/all_settings#client_discovery_header |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-04-22 07:34 | Patrick Kaiser | New Issue | |
2021-04-27 13:57 | derick | Assigned To | => derick |
2021-04-27 13:57 | derick | Status | new => feedback |
2021-04-27 13:57 | derick | Note Added: 0005863 | |
2021-04-28 05:48 | Patrick Kaiser | Note Added: 0005865 | |
2021-04-28 05:48 | Patrick Kaiser | Status | feedback => assigned |
2022-06-06 10:08 | derick | Status | assigned => closed |
2022-06-06 10:08 | derick | Resolution | open => fixed |
2022-06-06 10:08 | derick | Note Added: 0006324 |