File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ PHP NEWS
11
11
(Gustavo)
12
12
. Uploads equal or greater than 2GB in size are now accepted.
13
13
(Ralf Lang, Mike)
14
+ . Reduced POST data memory usage by 200-300%. Removed INI setting
15
+ always_populate_raw_post_data and the $HTTP_RAW_POST_DATA global
16
+ variable. (Mike)
14
17
15
18
- cURL:
16
19
. Implemented FR #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir
Original file line number Diff line number Diff line change @@ -20,11 +20,23 @@ PHP X.Y UPGRADE NOTES
20
20
1. Backward Incompatible Changes
21
21
========================================
22
22
23
+ - Core:
24
+ Removed $HTTP_RAW_POST_DATA global variable. Restore backwards compatibility
25
+ by:
26
+ <?php
27
+ global $HTTP_RAW_POST_DATA;
28
+ if (!isset($HTTP_RAW_POST_DATA)) {
29
+ $HTTP_ROW_POST_DATA = file_get_contents("php://input");
30
+ }
31
+ ?>
23
32
24
33
========================================
25
34
2. New Features
26
35
========================================
27
36
37
+ - Core:
38
+ The php://input stream is now re-usable and can be used concurrently with
39
+ enable_post_data_reading=0.
28
40
29
41
========================================
30
42
2. Changes in SAPI modules
@@ -91,6 +103,8 @@ PHP X.Y UPGRADE NOTES
91
103
10. Changes to INI File Handling
92
104
========================================
93
105
106
+ - Core:
107
+ Removed always_populate_raw_post_data.
94
108
95
109
========================================
96
110
11. Other Changes
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ UPGRADE NOTES - PHP X.Y
5
5
1. Internal API changes
6
6
a. Addition of do_operation and compare object handlers
7
7
b. return_value_ptr now always available, RETVAL_ZVAL_FAST macros
8
+ c. POST data handling
8
9
9
10
2. Build system changes
10
11
a. Unix build system changes
@@ -57,6 +58,15 @@ UPGRADE NOTES - PHP X.Y
57
58
The macros behave similarly to the non-FAST variants with copy=1 and
58
59
dtor=0, but will try to return the zval without making a copy by utilizing
59
60
return_value_ptr.
61
+
62
+ c. POST data handling
63
+
64
+ The sapi_request_info's members post_data, post_data_len and raw_post_data as
65
+ well as raw_post_data_len have been replaced with a temp PHP stream
66
+ request_body.
67
+
68
+ The recommended way to access raw POST data is to open and use a php://input
69
+ stream wrapper. It is safe to be used concurrently and more than once.
60
70
61
71
========================
62
72
2. Build system changes
You can’t perform that action at this time.
0 commit comments