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 repeated processing of internal functions #3022

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

bwoebi
Copy link
Collaborator

@bwoebi bwoebi commented Jan 8, 2025

Internal functions, when inherited, may (on PHP 8.1 with opcache at least) have pointers which are into heap memory which is local to a given process (e.g. attributes), not present on the target process. Thus accessing the attributes of a duplicated internal functions will crash there.

And on top of that, we anyway don't want to process these twice.

Internal functions, when inherited, may (on PHP 8.1 with opcache at least) have pointers which are into heap memory which is local to a given process (e.g. attributes), not present on the target process. Thus accessing the attributes of a duplicated internal functions will crash there.

And on top of that, we anyway don't want to process these twice.

Signed-off-by: Bob Weinand <[email protected]>
@bwoebi bwoebi requested a review from a team as a code owner January 8, 2025 03:35
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.92%. Comparing base (8d0cf27) to head (dd50804).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3022      +/-   ##
============================================
+ Coverage     63.61%   72.92%   +9.31%     
- Complexity     2776     2781       +5     
============================================
  Files           112      139      +27     
  Lines         11012    15166    +4154     
  Branches          0     1022    +1022     
============================================
+ Hits           7005    11060    +4055     
+ Misses         4007     3554     -453     
- Partials          0      552     +552     
Flag Coverage Δ
appsec-extension 67.99% <ø> (?)
tracer-php 74.78% <ø> (+11.17%) ⬆️

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

see 61 files with indirect coverage changes


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 8d0cf27...dd50804. Read the comment docs.

@bwoebi bwoebi merged commit b61f192 into master Jan 8, 2025
766 of 800 checks passed
@bwoebi bwoebi deleted the bob/skip-internal-fn-reresolve branch January 8, 2025 13:28
@github-actions github-actions bot added this to the 1.6.0 milestone Jan 8, 2025
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.

3 participants