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

Avoid resolving unresolved functions and classes #2450

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

bwoebi
Copy link
Collaborator

@bwoebi bwoebi commented Jan 4, 2024

Description

This only may pose problems with DDTrace\Trace attributes. In theory having the hook installed twice should not pose problems, but adding a hook to an unresolved class is at the very least not a supported scenario. Checking for the classes being actually linked.

This only affects PHP 8.0 and PHP 8.1 (classes only).

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

This only may pose problems with DDTrace\Trace attributes.
In theory having the hook installed twice should not pose problems, but adding a hook to an unresolved class is at the very least not a supported scenario. Checking for the classes being actually linked.

This only affects PHP 8.0 and PHP 8.1.

Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
@bwoebi bwoebi added the 🐛 bug Something isn't working label Jan 4, 2024
@bwoebi bwoebi added this to the 0.97.0 milestone Jan 4, 2024
@bwoebi bwoebi requested a review from a team as a code owner January 4, 2024 05:04
@github-actions github-actions bot removed this from the 0.97.0 milestone Jan 4, 2024
@bwoebi bwoebi merged commit 41cb273 into master Jan 9, 2024
609 of 612 checks passed
@bwoebi bwoebi deleted the bob/fix-double-resolve branch January 9, 2024 10:53
@github-actions github-actions bot added this to the 0.97.0 milestone Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants