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 | |||
| 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 |