I noticed that DebugStack was adding an empty element when it was disabled. This PR changes it to match startQuery with its behavior.
Failed asserting that two arrays are equal.
+  => Array
+ [executionMS] => 1341871660.9651
I've submitted the PR to 2.0.x since that's where the bug is first seen and is still listed as stable on doctrine-project.org. Preferably this could also be applied to newer branches as well, or I can also submit separate PRs.
Fix DebugStack->stopQuery to prevent unnecessary timings when disabled.
This pull request fails (merged d0352d7 into c1e4ec6).
2.0.x is not maintained anymore for bug fixes, it receives only security fixes.
Should I resubmit to a different branch?
Well, the best way is to submit a PR to master. This is where the development occurs (and where several people can merge it). @beberlei then chooses which PR should be backported to the maintenance branches (this one would be backported to 2.2 at least as it is a bugfix)
Thanks - I'll resubmit.