fix(tracing): hook is_internal was backwards#3625
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3625 +/- ##
==========================================
- Coverage 62.21% 62.12% -0.09%
==========================================
Files 141 141
Lines 13387 13387
Branches 1753 1753
==========================================
- Hits 8329 8317 -12
- Misses 4260 4270 +10
- Partials 798 800 +2 see 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Benchmarks [ tracer ]Benchmark execution time: 2026-02-04 23:03:00 Comparing candidate commit 7003e2b in PR branch Found 1 performance improvements and 5 performance regressions! Performance is the same for 184 metrics, 4 unstable metrics. scenario:BM_TeaSapiSpindown
scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:SamplingRuleMatchingBench/benchRegexMatching1
scenario:SamplingRuleMatchingBench/benchRegexMatching2
scenario:SamplingRuleMatchingBench/benchRegexMatching3
scenario:SamplingRuleMatchingBench/benchRegexMatching4
|
bwoebi
left a comment
There was a problem hiding this comment.
That's right, however I think the only effect is that on PHP 8.0 and 8.1 the runtime cache of dynamic (bound to a file rather than a class) hook-closures may leak (within a request - freed at request end).
Description
I'm fairly certain this is wrong but I'm not sure why it doesn't seem to affect things much. I have tried with AI's help to create reproducers that cause ASAN to fail (which is where I got started in the first place, looking at a bug report and seeing which things touch the run time cache and might get it wrong).
This field is used in a very narrow place, in
zai_hook_entries_destroywhen:hooks->run_time_cache != NULLhooks->resolved == NULLReviewer checklist