View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002265 | Xdebug | Stacktraces | public | 2024-05-03 19:58 | 2024-08-07 13:39 |
Reporter | lucasbustamante | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 3.3.1 | ||||
Summary | 0002265: Refletion consumes an exorbitating amount of resources if var_display_max_children and similars are unlimited or very high | ||||
Description | Reflection is used, for instance, on DI containers with autowiring. For the DI Container to autowire, it needs to call ReflectionMethod($class, '__construct') to get an instance of the constructor. This call becomes extremely expensive if Xdebug is active on "develop" mode and "var_display_max_children" is unlimited or very high, as per screenshot attached. | ||||
Steps To Reproduce |
Create two classes Foo and Bar: class Foo { public function __construct(Bar $bar) { class Bar {}
| ||||
Additional Information | This can be considered is a user error, since it only happens when "var_displaymax" is high, but I think some defensive programming can make Xdebug better here. Probably related: https://bugs.xdebug.org/view.php?id=1988 | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 8.1.10-8.1.19 | ||||
|
Profiler screenshot: |
|
I don't know what any of that means. Can you provide a full set of steps that allows me to reproduce this issue? Assume I know nothing about framework specific things. |
|
Hi, I am still waiting for the requested feedback. Can you please provide that? cheers, |
|
I can't reproduce this, and the requested feedback has not been forthcoming. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-05-03 19:58 | lucasbustamante | New Issue | |
2024-05-03 19:58 | lucasbustamante | Note Added: 0006931 | |
2024-05-03 19:58 | lucasbustamante | File Added: image.png | |
2024-05-06 10:38 | derick | Assigned To | => derick |
2024-05-06 10:38 | derick | Status | new => feedback |
2024-05-06 10:38 | derick | Note Added: 0006942 | |
2024-07-17 18:11 | derick | Note Added: 0006999 | |
2024-08-07 13:39 | derick | Status | feedback => resolved |
2024-08-07 13:39 | derick | Resolution | open => unable to reproduce |
2024-08-07 13:39 | derick | Note Added: 0007036 |