Commit 30d7b43
committed
phar: exercise CGI branch in gh21797 regression test
Set variables_order=EGPC, register_argc_argv=0 and cgi.fix_pathinfo=0
to keep TRACK_VARS_SERVER IS_UNDEF and route through the pre-4.3 CGI
path, which leaves SCRIPT_NAME unset while still populating
request_uri from PATH_INFO. This reaches the sapi_getenv(SCRIPT_NAME)
-> NULL call that the fix guards against; the prior CLI stub never
entered the CGI/FastCGI branch at all.1 parent 66e4d38 commit 30d7b43
1 file changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 17 | | |
16 | | - | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments