Repository navigation
Commit a947037
authored
docs: list runtime engine settings that persist in worker mode (#2682)
Worker mode doesn't run PHP's full request shutdown between requests, so
settings changed at runtime (`ini_set()`,
`stream_context_set_default()`, `date_default_timezone_set()`,
`chdir()`, `stream_wrapper_register()`, error and exception handlers)
stay in effect for later requests on the same thread, like static
variables do.
The State persistence section of the worker docs and the isolation note
in the security docs now say so, and warn against putting request- or
user-specific values, such as credentials in the default stream context,
in these settings.1 parent 3b370ed commit a947037
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
0 commit comments