-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit 8b51bca
Fix CGI with auto_globals_jit=0
In CGI, php_auto_globals_create_server() (i.e. auto_global_callback() here)
initializes $_ENV to reuse for $_SERVER. However, because $_SERVER is
constructed first, we have not yet initialized auto_global->armed of the $_ENV
global. Split the loop into initialization and constructor phases.
Closes GH-19870 1 parent 7a63dcc commit 8b51bca
2 files changed
+22
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2014 | 2014 |
| |
2015 | 2015 |
| |
2016 | 2016 |
| |
2017 | - | ||
2018 | - | ||
2019 | - | ||
2017 | + | ||
2018 | + | ||
2019 | + | ||
2020 | + | ||
2021 | + | ||
2020 | 2022 |
| |
2021 | - | ||
2022 | - | ||
2023 | 2023 |
| |
2024 | 2024 |
| |
2025 | 2025 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + |
0 commit comments