Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: concurrent env access #1409

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

fix: concurrent env access #1409

wants to merge 6 commits into from

Conversation

AlliBalliBaba
Copy link
Collaborator

@AlliBalliBaba AlliBalliBaba commented Feb 25, 2025

This is an attempt at fixing #1395 #1061 #1353

The idea is basically to sandbox the environment on a per-thread basis and to not flush $_ENV values in worker mode.

This still allows putenv to affect the actual environment (in case of forking). It does not fully resolve all environment races in ZTS, but will resolve all races for $_ENV, $_SERVER and through getenv().

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.

2 participants