You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add the missing BootRequested, Rebooting and RebootReady states to the lifecycle diagram and table, and reference internal/state/state.go for the full set.
- Correct the environment-sandboxing description: $_SERVER is built from a copy of main_thread_env plus request-specific variables, $_ENV is populated from the same snapshot via php_import_environment_variables, and sandboxed_env is reset after each script execution (lazy re-init on next getenv/putenv).
Signed-off-by: Kévin Dunglas <kevin@dunglas.fr>
3.`frankenphp_putenv()` / `frankenphp_getenv()`use a thread-local `sandboxed_env`copy, preventing race conditions on the global environment
218
-
4.The sandboxed environment is reset between requests via `reset_sandboxed_environment()`
223
+
2.For each request, `$_SERVER` is built from a copy of `main_thread_env`plus request-specific variables (in `frankenphp_register_server_vars`); `$_ENV` is populated from the same snapshot through PHP's `php_import_environment_variables` hook
224
+
3.`frankenphp_putenv()` / `frankenphp_getenv()`operate on a thread-local `sandboxed_env`initialized lazily from `main_thread_env`, preventing race conditions on the global C environment
225
+
4.After each script execution, `reset_sandboxed_environment()` releases `sandboxed_env`; the next call re-initializes it from `main_thread_env`
0 commit comments