File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1756,7 +1756,7 @@ zend_result php_request_startup(void)
1756
1756
CWDG (realpath_cache_size_limit ) = 0 ;
1757
1757
}
1758
1758
1759
- if (PG (expose_php )) {
1759
+ if (PG (expose_php ) && ! SG ( headers_sent ) ) {
1760
1760
sapi_add_header (SAPI_PHP_VERSION_HEADER , sizeof (SAPI_PHP_VERSION_HEADER )- 1 , 1 );
1761
1761
}
1762
1762
Original file line number Diff line number Diff line change @@ -14,7 +14,5 @@ var_dump(strlen(file_get_contents('php://input')));
14
14
Warning: Unknown: Unable to create temporary file, Check permissions in temporary files directory. in Unknown on line 0
15
15
16
16
Warning: Unknown: POST data can't be buffered; all data discarded in Unknown on line 0
17
-
18
- Warning: Cannot modify header information - headers already sent in Unknown on line 0
19
17
bool(false)
20
18
int(0)
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ var_dump($_POST, $HTTP_RAW_POST_DATA);
13
13
--EXPECTF--
14
14
Warning: Unknown: POST Content-Length of 2050 bytes exceeds the limit of 1024 bytes in Unknown on line 0
15
15
16
- Warning: Cannot modify header information - headers already sent in Unknown on line 0
17
-
18
16
Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d
19
17
array(0) {
20
18
}
You can’t perform that action at this time.
0 commit comments