File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ PHP NEWS
45
45
read valid db). (Marcus)
46
46
- Fixed bug #38680 (Added missing handling of basic types in json_decode).
47
47
(Ilia)
48
+ - Fixed bug #38602 (header( "HTTP/1.0 ..." ) does not change proto version).
49
+ (Ilia)
48
50
- Fixed bug #38536 (SOAP returns an array of values instead of an object).
49
51
(Dmitry)
50
52
- Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
Original file line number Diff line number Diff line change @@ -129,9 +129,14 @@ php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
129
129
130
130
/* httpd requires that r->status_line is set to the first digit of
131
131
* the status-code: */
132
- if (sline && strlen (sline ) > 12 && strncmp (sline , "HTTP/1." , 7 ) == 0
133
- && sline [8 ] == ' ' ) {
132
+ if (sline && strlen (sline ) > 12 && strncmp (sline , "HTTP/1." , 7 ) == 0 && sline [8 ] == ' ' ) {
134
133
ctx -> r -> status_line = apr_pstrdup (ctx -> r -> pool , sline + 9 );
134
+ ctx -> r -> proto_num = 1000 + (sline [7 ]- '0' );
135
+ if ((sline [7 ]- '0' ) == 0 ) {
136
+ apr_table_set (ctx -> r -> subprocess_env , "force-response-1.0" , "true" );
137
+ } else {
138
+ apr_table_set (ctx -> r -> subprocess_env , "force-response-1.1" , "true" );
139
+ }
135
140
}
136
141
137
142
/* call ap_set_content_type only once, else each time we call it,
You can’t perform that action at this time.
0 commit comments