Foundation: fold sodium advertise into ext.json probe (#36204) - #37717
Merged
Merged
Conversation
Last hand-written advertisesExtension() now delegates through ExtensionRegistry via advertise.probe → VmSodium::available() (host symbols or libsodium FFI). Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
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.
Summary
advertisesExtension()fold for Architecture: per-extension manifest (ext/<name>/ext.json) with declared deps and default-enabled flag; remove lib→ext imports; fold 54 policy classes + 30 enable flags into it (lib/ExtensionRegistry.php, lib/ModuleAbstract.php) (re-#23480) #36204: sodium now usesext.jsonadvertise.probe→ExtensionRegistry→VmSodium::available()(hostfunction_existsor libsodium FFI; php-srcext/sodium/sodium.c).probeDSL; AEGIS feature gates stay onSodiumExtensionPolicy.Test plan
./script/phpunit.sh --filter 'ExtensionPolicyAdvertiseTest|SodiumAegisGateTest'→ OK (23 tests, 109 assertions)./script/docker-exec.sh -- bash -lc 'php script/generate-extension-registry.php --check'→ ok 84./script/docker-exec.sh -- bash -lc 'php script/sync-extension-manifests.php --check'→ ok 84./script/aot-smoke.sh→ 9/9 + size gate OKPart of #36204
Made with Cursor