Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer loading of PDO, Memcached, Slim, WordPress, and Yii integrations until first usage #1006

Merged
merged 10 commits into from Oct 13, 2020

Conversation

labbati
Copy link
Member

@labbati labbati commented Sep 3, 2020

Description

This PR defers the loading of PDO, Memcached, Slim, WordPress, and Yii integrations until they are used.

Cleans up Yii2 and WordPress a tiny bit:

  • Remove unnecessary singletons
  • Use non-tracing API for some hooks

Readiness checklist

  • (only for Members) Changelog has been added to the release document.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the release document. For community contributors the reviewer is in charge of this task.

@labbati labbati added this to the 0.49.0 milestone Sep 8, 2020
@labbati labbati added the 🎉 new-integration A new integration label Sep 8, 2020
I confirmed in a debugger that this is a use-after-free that is
fixed in PHP 7.0+. However, I'm not fully certain about _why_ it
happens now, and didn't before; that seems to be due to another bug
somewhere.
Remove un-necessary YiiIntegrationLoader class
Use non-tracing API in Yii integration
Sort integrations in integrations.c
Remove un-necessary singleton
Use non-tracing hook
@morrisonlevi morrisonlevi changed the title Defer loading of pdo and memcached integrations until first usage Defer loading of PDO, Memcached, Slim, WordPress, and Yii integrations until first usage Sep 21, 2020
Remove elasticsearch.h as it no longer is large enough to merit its
own file; likewise test_integration.h.
@labbati
Copy link
Member Author

labbati commented Oct 12, 2020

@SammyK you might want to take a look at it since both @morrisonlevi and I pushed to this branch?

Copy link
Contributor

@SammyK SammyK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@morrisonlevi morrisonlevi merged commit 79c933f into master Oct 13, 2020
@morrisonlevi morrisonlevi deleted the labbati/defer-integrations branch October 13, 2020 22:15
@morrisonlevi morrisonlevi modified the milestones: 0.49.0, 0.50.0 Oct 13, 2020
@SammyK SammyK modified the milestones: 0.50.0, 0.49.0 Oct 14, 2020
SammyK pushed a commit that referenced this pull request Oct 14, 2020
Defer loading of PDO, Memcached, Slim, WordPress, and Yii integrations until first usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 new-integration A new integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants