View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001608 | Xdebug | Step Debugging | public | 2019-01-15 14:30 | 2020-11-14 16:15 |
Reporter | alexo | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | ANY | OS | ANY | OS Version | ANY |
Product Version | 2.6.0 | ||||
Target Version | 3.0.0RC1 | Fixed in Version | 3.0.0RC1 | ||
Summary | 0001608: XDEBUG_CONFIG env var make sessions automatically START ever (at least send the XDEBUG_SESSION cookie) | ||||
Description | I think i've found a great bug inthe XDEBUG sources (linked to my previous issue 0001604 not yet answered). My problem was that i've set (for any need) an EMPTY env var called XDEBUG_CONFIG, this make XDEBUG ALWAYS write a XDEBUG_SESSION cookie in response to any request, with the default IDE key. THIS also make XDEBUG ever try to contact the xdebug.remote_host EVER when remote_enable=0 or remote_autostart=0 I arrived to this problem trough reading the C source and i saw this line: I'm not actually a C developer but wrote some driver in the past so i can quickly understand that getenv() return NULL only when the ENV_VAR does not exist... when it is empty getenv() return an empty string that in that IF evaluate to TRUE. Actually i'm unable to make a fix/PR as i dont touch C lang since some time, so please make a PR yourself and TAG me on github if you have pleasure (my GitHub account is aledelgo) | ||||
Steps To Reproduce | Set this in the php-fpm pool setting env[XDEBUG_CONFIG] = $XDEBUG_CONFIG set the env as empty on your system set this settings on php.ini call any php file. if you set | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.1.20-7.1.24 | ||||
|
i've tried to fix and make a PR on the fly... don't blame me for the rude attempt. hope you can improve it. thanks |
|
I can see there is something odd going on here. I don't think your fix is correct, but I will have a look once Xdebug 2.7.0 has been released. Thanks for reporting this issue! |
|
|
|
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-01-15 14:30 | alexo | New Issue | |
2019-01-15 14:58 | alexo | Note Added: 0004805 | |
2019-01-22 22:08 | derick | Note Added: 0004827 | |
2019-01-22 22:08 | derick | Assigned To | => derick |
2019-01-22 22:08 | derick | Status | new => acknowledged |
2019-01-22 22:11 | derick | Relationship added | has duplicate 0001604 |
2019-08-05 19:18 | derick | Target Version | => 3.0dev |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:37 | derick | Category | Variable Display => Step Debugging |
2020-11-14 10:38 | derick | Status | acknowledged => assigned |
2020-11-14 10:38 | derick | Note Added: 0005531 | |
2020-11-14 10:49 | derick | Status | assigned => closed |
2020-11-14 10:49 | derick | Resolution | open => fixed |
2020-11-14 10:49 | derick | Fixed in Version | => 3.0.0RC1 |
2020-11-14 10:49 | derick | Note Added: 0005532 | |
2020-11-14 16:15 | derick | Target Version | 3.0dev => 3.0.0RC1 |