View Issue Details

IDProjectCategoryView StatusLast Update
0001685XdebugStep Debuggingpublic2020-03-12 16:43
Reporterhuguesalary Assigned Toderick  
Status resolvedResolutionno change required 
Product Version2.7.2 
Summary0001685: OPCache disabled by xdebug should be opt-in (or opt-out)
DescriptionVersion 2.7.2 introduced a feature that disables opcache when xdebug is on.

Here's the original bug report that triggered the change:

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?

TagsNo tags attached.
Operating System
PHP Version7.3.2-7.3.4



2019-07-18 00:04

reporter   ~0005067

After trying to use version 2.7.1 (which supposedly does not implement 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 ``) makes my app's performance go back to normal.

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:



2019-07-18 10:58

administrator   ~0005069

Xdebug only turns off OPcache *optimisation* (and not all of OPcache), *only* when the debugger is enabled: — if you're running your app with the step debugger, not having OPcache optimisation enabled is not going to be a noticeable difference.

Issue History

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