Skip to content

Rename zend_error_notify APIs to zend_observer_error* #6131

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

Closed
wants to merge 3 commits into from

Conversation

beberlei
Copy link
Contributor

@beberlei beberlei commented Sep 14, 2020

My previous PR #4555 introduced a new error notification callback API. After merging #5857 for PHP 8 as well, this PR moves the error notification API into zend_observer.h and zend_observer.c.

This will produce a more consistent naming for future, where we provide a general observer API into different parts of PHP engine.

A soft goal would be that we can replace all parts of Dtrace support that are currently hardcoded into the engine using this general observer API provided by zend_observer.h at some point in the future, so that dtrace can become an extension instead of being coupled into the engine.

/cc @morrisonlevi @SammyK

@carusogabriel carusogabriel added this to the PHP 8.0 milestone Sep 14, 2020
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

Looks fine to me, but maybe wait for Levi/Sammy to comment.

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.

👍 Good idea @beberlei. LGTM!

@beberlei
Copy link
Contributor Author

Merged in 1359a52

@beberlei beberlei closed this Sep 14, 2020
@beberlei beberlei deleted the ErrorNotifyObserverRename branch September 14, 2020 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants