View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001685 | Xdebug | Step Debugging | public | 2019-07-17 23:23 | 2020-03-12 16:43 |
Reporter | huguesalary | Assigned To | derick | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 2.7.2 | ||||
Summary | 0001685: OPCache disabled by xdebug should be opt-in (or opt-out) | ||||
Description | Version 2.7.2 introduced a feature that disables opcache when xdebug is on. Here's the original bug report that triggered the change: https://bugs.xdebug.org/bug_view_page.php?bug_id=00001615 This change unfortunately has a major impact on my application. It so happen that my application heavily relies on OPCache for its performances. Without OPCache on, the performances plummets to the point of the app being unusable. This is hugely problematic in my xdebug enabled development environment. Would it be possible to make the "opcache disabled" an opt-out (or opt-in) feature via a php configuration? | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.3.2-7.3.4 | ||||
|
After trying to use version 2.7.1 (which supposedly does not implement https://bugs.xdebug.org/bug_view_page.php?bug_id=00001615) I realized that my application still becomes unresponsive. So it seems the slowness issue might be coming from something else and not merely version 2.7.2. Disabling xdebug (by commenting out I've been using xdebug for a very long time and never noticed any slowness until I tried migrating to PHP 7.3. Before that, I was running PHP 7.0 with xdebug 2.5.0, with no issue. Here are my settings: |
|
Xdebug only turns off OPcache optimisation (and not all of OPcache), only when the debugger is enabled: https://github.com/xdebug/xdebug/blob/10469d2829cc3b32a1b51449901223b63300faec/xdebug.c#L1259-L1276 — if you're running your app with the step debugger, not having OPcache optimisation enabled is not going to be a noticeable difference. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-17 23:23 | huguesalary | New Issue | |
2019-07-18 00:04 | huguesalary | Note Added: 0005067 | |
2019-07-18 10:58 | derick | Assigned To | => derick |
2019-07-18 10:58 | derick | Status | new => resolved |
2019-07-18 10:58 | derick | Resolution | open => no change required |
2019-07-18 10:58 | derick | Note Added: 0005069 | |
2020-03-12 16:43 | derick | Category | Feature/Change request => Step Debugging |