Skip to content

[PHP] fix: preserve fork environment and trim stale xfails#742

Open
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-preserve-fork-env
Open

[PHP] fix: preserve fork environment and trim stale xfails#742
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-preserve-fork-env

Conversation

@brandonpayton

Copy link
Copy Markdown
Member

Supersedes fork-headed PR #722. This replacement keeps the same head commit (9c02de56346bc640d241ad90ee353c69ae45d5a7) but moves the PR head onto an Automattic/kandelo branch.

Why this is needed

PHPT process tests expect forked children to inherit the parent's environment accurately. Losing or mutating environment state across fork makes PHP subprocess behavior diverge from the Unix process model and creates false PHPT failures.

Why this shape makes sense

The environment inheritance rule is a process-runtime invariant. Fixing it in Kandelo makes PHP, shells, and other fork-heavy packages behave consistently, while trimming stale xfails keeps the harness expectations aligned with the runtime's current behavior.

Why this is the correct fix

Preserving fork environment state at the process boundary matches POSIX expectations and avoids test-specific workarounds. The related xfail cleanup prevents already-fixed behavior from remaining hidden.

Verification

Branch-location correction only; replacement head SHA matches #722 exactly.

(cherry picked from commit 5621cf5)
(cherry picked from commit 5d802b2)
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.

1 participant