Repository navigation
fix: restore alpha.21's release notes and tighten review follow-ups - #108
Merged
Merged
Conversation
text; the notes match the tag again and both changes are listed under Unreleased. The sampled-bailout probe fails again where CI requires sampling, the worker wrapper's detection exit applies to worker calls only as documented, two comments are corrected, the unit stand-in drops its bool type, and a sampling unit check pins the interrupt order.
phcorp
force-pushed
the
fix/changelog-and-review-nits
branch
from
November 29, 2026 14:14
cbb84ba to
84b7116
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from the review of #105–#106.
### Fixed(Unreleased was empty), and it rewrote alpha.21's text. fix: type the worker wrapper's early returns and raise deferred fatals first #106's PR body was also wrong to say the interrupt reorder never shipped. alpha.21's section now matches the tag byte for byte, and Unreleased lists both changes: the interrupt order restored and thefalseworker result.isSamplingSupported()skip silently. The probe now fails whereverCI_PROFILER_REQUIRE_SAMPLING=1(every CI job that runs it) and only skips elsewhere.boolwhile it returns the callback's long. The local PHP 8.6 debug build ran the worker modes without an assert, but the type contradicted the stand-in, so it is reverted to untyped.wrap && pending, so a non-worker call gets FrankenPHP's refusal as documented. The RINIT comment notes that raising clears the flag. The interrupt comment says a pre-empted handler does not run, because Zend already clearedvm_interrupt. New sampling-unit checkprofiler_test_sampling_bailout_order()pins the order: a deferred bailout must pre-empt the previous interrupt handler. It runs on Linux, where the bridge unit is built (PROFILER_C_UNIT_BOUNDARIES=1), and reports -1 elsewhere.Not changed: on platforms without the sampling interrupt hook (macOS, musl, old glibc) with
observer=Off, nothing raises a deferred bailout, for example in FrankenPHP worker detection (pre-existing). No test checks thefalseresult before the bailout fires; release builds cannot observe it.Ledger:
sampling.c447→448 and 483→484, remapped by unique text; audit note added.