View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001186 | Xdebug | Uncategorized | public | 2015-09-21 16:43 | 2016-12-03 13:35 |
Reporter | blaimi | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | not fixable | ||
Platform | Linux | OS | Debian | OS Version | “jessie” 8 |
Product Version | 2.3.3 | ||||
Summary | 0001186: xdebug crash when using \DOMAttr with collect_params > 0 | ||||
Description | xdebug crashs if an object of type \DOMAttr is used. This happens on var_dump($domattr) as well as enabling the code-trace. The error occures from 2.3.0 to 2.3.3. 2.2.7 is not affected. | ||||
Steps To Reproduce | <?php function give_attr() { function print_value($dom_attribute) { $dom_attribute = give_attr(); the skript crashes at the var_dump if collect_params is greater than 0 in every case. print_value is working if collect_params is less than 3 or tracing is disabled. the return value of give_attr() is always 'null' if collect_return is enabled, which is also wrong but I don't know if it's a different bug). Conclusion: | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.6.10-5.6.14 | ||||
|
I can reproduce this with Xdebug 2.3 - but no longer with the master branch. Would you be so kind to give that a spin? |
|
The code now gives a “not implemented” warning and the code doesn't crash. the bug with the return-value seems also be fixed. |
|
I checked this once more, and the "not yet implemented" comes from the DOM extension itself. It shows the same warning when Xdebug is not loaded, which makes this a bug (or, not yet implemented features) in PHP's DOM extension. There is a bug in the PHP bug system for this already too: https://bugs.php.net/bug.php?id=61858 |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-09-21 16:43 | blaimi | New Issue | |
2015-10-23 08:24 | derick | Note Added: 0003186 | |
2015-10-23 08:24 | derick | Assigned To | => derick |
2015-10-23 08:24 | derick | Status | new => feedback |
2015-10-28 10:38 | blaimi | Note Added: 0003197 | |
2015-10-28 10:38 | blaimi | Status | feedback => assigned |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2016-12-03 13:35 | derick | Note Added: 0003884 | |
2016-12-03 13:35 | derick | Status | assigned => resolved |
2016-12-03 13:35 | derick | Resolution | open => not fixable |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |