Skip to content

PHP-1741: Remove getServer from APM event classes #1652

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

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Sep 17, 2024

https://jira.mongodb.org/browse/PHPC-1741

This also removes the internal Manager reference.

This also removes the internal Manager reference.
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Changes look good, but there's a leftover field in the command event structs that's no longer needed.

@@ -195,10 +184,6 @@ static void php_phongo_commandfailedevent_free_object(zend_object* object)
zval_ptr_dtor(&intern->z_error);
}

if (!Z_ISUNDEF(intern->manager)) {
zval_ptr_dtor(&intern->manager);
Copy link
Member

Choose a reason for hiding this comment

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

You can also remove the manager field from the corresponding struct as it's no longer used. Same applies to the other command event structs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, thanks for catching that ✌️

@jmikola jmikola requested a review from alcaeus September 17, 2024 15:12
@alcaeus alcaeus merged commit 442ff58 into mongodb:v2.x Sep 18, 2024
62 checks passed
@jmikola jmikola deleted the 2.0-phpc-1741 branch September 19, 2024 00:35
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.

2 participants