Repository navigation
Commit 4138016
authored
docs: document last-error state persistence in worker mode (#2738)
A worker script runs as one long PHP request, so error_get_last(),
libxml_get_errors() and libxml_get_last_error() keep returning what an
earlier request left behind until it is cleared. These messages can
embed fragments of another client's input or server paths.
Add this state to the list of what persists across worker requests, and
recommend clearing it with error_clear_last() and libxml_clear_errors().1 parent f2df5c3 commit 4138016
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 | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
0 commit comments