Skip to content

Address GH-25403: Make pcntl child memory re-keying optional - #25429

Open
kairosci wants to merge 1 commit into
php:masterfrom
kairosci:fix/gh-25403-optional-fork-rekey
Open

kairosci wants to merge 1 commit into
php:masterfrom
kairosci:fix/gh-25403-optional-fork-rekey

Conversation

@kairosci

@kairosci kairosci commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #25403.

Adds an optional rekey_memory argument to all three pcntl fork functions, preserving re-keying by default and all other child initialization. Documents the shared-key trade-off and adds regression coverage. Local tests were not run as requested.

@kairosci

kairosci commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

cc @bukka @arnaud-lb @devnexen

@kairosci
kairosci force-pushed the fix/gh-25403-optional-fork-rekey branch from 8c4b32a to 015efae Compare November 13, 2026 00:11
@devnexen

Copy link
Copy Markdown
Member

as far as this approach goes, it seems valid however it might be possible to do differently I ll try to have a deeper look this week end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pcntl_fork() child re-keys every inherited free list since 8.5 (slow child start, copies inherited memory)

2 participants