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

Fix exception property offset computation for PHP 8.1+ #2901

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

bwoebi
Copy link
Collaborator

@bwoebi bwoebi commented Oct 17, 2024

They're shared across all inheritors on PHP 8.1+ and thus only need to be incremented on the specific ce.

This issue arises when a property from an inherited internal class extending Exception is itself inherited by another class.

Also fix an accidentally discovered use-after-free with peer.service.

Fixes #2898.

They're shared across all inheritors on PHP 8.1+ and thus only need to be incremented on the specific ce.

This issue arises when a property from an inherited internal class extending Exception is itself inherited by another class.

Also fix an accidentally discovered use-after-free with peer.service.

Fixes #2898.

Signed-off-by: Bob Weinand <[email protected]>
@bwoebi bwoebi requested a review from a team as a code owner October 17, 2024 12:57
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.21%. Comparing base (3f3547d) to head (72ff094).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2901   +/-   ##
=========================================
  Coverage     78.21%   78.21%           
  Complexity     2526     2526           
=========================================
  Files           173      173           
  Lines         18749    18749           
  Branches        988      988           
=========================================
  Hits          14664    14664           
  Misses         3544     3544           
  Partials        541      541           
Flag Coverage Δ
appsec-extension 68.37% <ø> (ø)
tracer-extension 78.10% <ø> (ø)
tracer-php 82.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f3547d...72ff094. Read the comment docs.

@pr-commenter
Copy link

pr-commenter bot commented Oct 17, 2024

Benchmarks [ tracer ]

Benchmark execution time: 2024-10-17 13:26:16

Comparing candidate commit 72ff094 in PR branch bob/fix-ex with baseline commit 3f3547d in branch master.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 177 metrics, 0 unstable metrics.

scenario:TraceFlushBench/benchFlushTrace

  • 🟩 execution_time [-1000.000ns; -1000.000ns] or [-50.000%; -50.000%]

@bwoebi bwoebi merged commit ed256f3 into master Oct 17, 2024
677 of 699 checks passed
@bwoebi bwoebi deleted the bob/fix-ex branch October 17, 2024 16:35
@github-actions github-actions bot added this to the 1.5.0 milestone Oct 17, 2024
@bwoebi bwoebi modified the milestones: 1.5.0, 1.4.2 Oct 18, 2024
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.

[Bug]: upgrade from 1.3.2 to 1.4.* seems to cause segmentation fault when MongoDB Exception was thrown
3 participants