Skip to content

docs: putenv() writes persist across worker requests on the same thread - #2783

Open
dunglas wants to merge 2 commits into
mainfrom
docs/putenv-persistence
Open

dunglas wants to merge 2 commits into
mainfrom
docs/putenv-persistence

Conversation

@dunglas

@dunglas dunglas commented Oct 26, 2026

Copy link
Copy Markdown
Member

The sandboxing section of docs/security.md said a putenv() value can't leak "to other requests", which contradicts the worker-mode section just above it: putenv() writes persist across requests handled by the same worker thread until the script restarts. The sandbox only isolates threads. Same wording fixed in docs/internals.md and in the frankenphp_putenv() comment.

Reported by Zachariah Mithani.

This branch has not been deployed

No deployments
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