Skip to content

Commit d17b684

Browse files
committed
bump version, empty NEWS, UPGRADING and UPGRADING.INTERNALS
1 parent 117955d commit d17b684

File tree

5 files changed

+5
-252
lines changed

5 files changed

+5
-252
lines changed

NEWS

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,5 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3-
?? ??? 20??, PHP 5.6.0
4-
5-
- Core:
6-
. Improved IS_VAR operands fetching. (Laruence, Dmitry)
7-
. Implemented internal operator overloading
8-
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
9-
. Made calls from incompatible context issue an E_DEPRECATED warning instead
10-
of E_STRICT (phase 1 of RFC: https://wiki.php.net/rfc/incompat_ctx).
11-
(Gustavo)
12-
. Uploads equal or greater than 2GB in size are now accepted.
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)
17-
. Implemented dedicated syntax for variadic functions
18-
(RFC: https://wiki.php.net/rfc/variadics). (Nikita)
19-
. Fixed bug #50333 Improving multi-threaded scalability by using
20-
emalloc/efree/estrdup (Anatol, Dmitry)
21-
22-
- cURL:
23-
. Implemented FR #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir
24-
or safe_mode). (Adam)
25-
26-
- GMP:
27-
. Moved GMP to use object as the underlying structure and implemented various
28-
improvements based on this.
29-
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
30-
31-
- Hash:
32-
. Added gost-crypto (CryptoPro S-box) GOST hash algo. (Manuel Mausz)
33-
34-
- mysqlnd:
35-
. Disabled flag for SP OUT variables for 5.5+ servers as they are not natively
36-
supported by the overlying APIs. (Andrey)
37-
38-
- OPcache:
39-
. Added an optimization pass to convert FCALL_BY_NAME into DO_FCALL.
40-
(Laruence, Dmitry)
41-
. Added an optimization pass to merged identical constants (and related
42-
cache_slots) in op_array->literals table. (Laruence, Dmitry)
43-
. Added script level constant replacement optimization pass. (Dmitry)
44-
45-
- Openssl:
46-
. Added crypto_method option for the ssl stream context. (Martin Jansen)
47-
. Added certificate fingerprint support. (Tjerk Meesters)
48-
. Added explicit TLSv1.1 and TLSv1.2 stream transports. (Daniel Lowrey)
49-
. Fixed bug #65729 (CN_match gives false positive). (Tjerk Meesters)
50-
51-
- PDO_pgsql:
52-
. Fixed Bug #42614 (PDO_pgsql: add pg_get_notify support). (Matteo)
53-
. Fixed Bug #63657 (pgsqlCopyFromFile, pgsqlCopyToArray use Postgres < 7.3
54-
syntax). (Matteo)
55-
56-
- Session:
57-
. Fixed Bug #65315 (session.hash_function silently fallback to default md5)
58-
(Yasuo)
59-
. Implemented Request #54649 (Create session_serializer_name()). (Yasuo)
60-
. Implemented Request #17860 (Session write short circuit). (Yasuo)
61-
. Implemented Request #20421 (session_abort() and session_reset() function).
62-
(Yasuo)
63-
. Implemented Request #11100 (session_gc() function). (Yasuo)
64-
65-
- Standard:
66-
. Implemented FR #65634 (HTTP wrapper is very slow with protocol_version
67-
1.1). (Adam)
68-
. Implemented Change crypt() behavior w/o salt RFC. (Yasuo)
69-
https://wiki.php.net/rfc/crypt_function_salt
70-
71-
- XMLReader:
72-
. Fixed bug #55285 (XMLReader::getAttribute/No/Ns methods inconsistency).
73-
(Mike)
74-
75-
- Zip:
76-
. update libzip to version 1.11.1.
77-
PHP don't use any ilibzip private symbol anymore. (Pierre, Remi)
78-
. new method ZipArchive::setPassword($password). (Pierre)
79-
. add --with-libzip option to build with system libzip. (Remi)
3+
?? ??? 20??, PHP 5.7.0
804

815
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

UPGRADING

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,11 @@ PHP X.Y UPGRADE NOTES
2020
1. Backward Incompatible Changes
2121
========================================
2222

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_RAW_POST_DATA = file_get_contents("php://input");
30-
}
31-
?>
3223

3324
========================================
3425
2. New Features
3526
========================================
3627

37-
- Added dedicated syntax for variadic functions.
38-
(https://wiki.php.net/rfc/variadics)
39-
40-
- The php://input stream is now re-usable and can be used concurrently with
41-
enable_post_data_reading=0.
42-
43-
- Added gost-crypto (CryptoPro S-box) hash algo.
44-
45-
- Added openssl certificate fingerprint support (inclusive stream context
46-
option).
47-
48-
- Added openssl crypto method stream context option.
4928

5029
========================================
5130
2. Changes in SAPI modules
@@ -56,38 +35,16 @@ PHP X.Y UPGRADE NOTES
5635
3. Deprecated Functionality
5736
========================================
5837

59-
- Incompatible context calls:
60-
Instance calls from an incompatible context are now deprecated and issue
61-
E_DEPRECATED instead of E_STRICT. See https://wiki.php.net/rfc/incompat_ctx
6238

6339
========================================
6440
4. Changed Functions
6541
========================================
6642

67-
- cURL:
68-
CURLOPT_SAFE_UPLOAD is now turned on by default and uploads with @file
69-
do not work unless it is explicitly set to false.
70-
71-
- Crypt:
72-
crypt() will now raise an E_NOTICE error if the salt parameter is omitted.
73-
See: https://wiki.php.net/rfc/crypt_function_salt
74-
75-
- XMLReader:
76-
XMLReader::getAttributeNs and XMLReader::getAttributeNo now return NULL if
77-
the attribute could not be found, just like XMLReader::getAttribute.
7843

7944
========================================
8045
5. New Functions
8146
========================================
8247

83-
- Openssl:
84-
Added string openssl_x509_fingerprint($x509, $type, $binary).
85-
86-
- LDAP:
87-
Added ldap_escape($value, $ignore = "", $flags = 0).
88-
89-
- Zip:
90-
Added ZipArchive::setPassword($password)
9148

9249
========================================
9350
6. New Classes and Interfaces
@@ -103,47 +60,18 @@ PHP X.Y UPGRADE NOTES
10360
8. Other Changes to Extensions
10461
========================================
10562

106-
- GMP:
107-
The GMP extension now uses objects as the underlying data structure, rather
108-
than resources. GMP instances now support dumping, serialization, cloning,
109-
casts to primitive types and have overloaded operators.
110-
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp)
111-
112-
- OCI8:
113-
- Added Implicit Result Set support for Oracle Database 12c with a
114-
new oci_get_implicit_resultset() function.
115-
- Using 'oci_execute($s, OCI_NO_AUTO_COMMIT)' for a SELECT no longer
116-
unnecessarily initiates an internal ROLLBACK during connection
117-
close.
118-
- Added DTrace probes enabled with PHP's generic --enable-dtrace
119-
- The oci_internal_debug() function is now a no-op.
120-
- The phpinfo() output format for OCI8 has changed.
12163

12264
========================================
12365
9. New Global Constants
12466
========================================
12567

126-
- LDAP:
127-
LDAP_ESCAPE_FILTER int(1)
128-
LDAP_ESCAPE_DN int(2)
12968

13069
========================================
13170
10. Changes to INI File Handling
13271
========================================
13372

134-
- Core:
135-
Removed always_populate_raw_post_data.
13673

13774
========================================
13875
11. Other Changes
13976
========================================
14077

141-
- File upload:
142-
Uploads equal or greater than 2GB in size are now accepted.
143-
144-
- HTTP stream wrapper:
145-
HTTP 1.1 requests now include a Connection: close header unless explicitly
146-
overridden by setting a Connection header via the header context option.
147-
148-
- Zip:
149-
New --with-libzip option allow to use system libzip. Version > 0.11 required.

UPGRADING.INTERNALS

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -17,108 +17,9 @@ UPGRADE NOTES - PHP X.Y
1717
1. Internal API changes
1818
========================
1919

20-
a. Addition of do_operation and compare object handlers
21-
22-
Two new object handlers have been added:
23-
24-
do_operation:
25-
typedef int (*zend_object_do_operation_t)(
26-
zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC
27-
);
28-
29-
compare:
30-
typedef int (*zend_object_compare_zvals_t)(
31-
zval *result, zval *op1, zval *op2 TSRMLS_DC
32-
);
33-
34-
The first handler is used to overload arithmetic operations. The first
35-
argument specifies the opcode of the operator, result is the target zval,
36-
op1 the first operand and op2 the second operand. For unary operations
37-
op2 is NULL. If the handler returns FAILURE PHP falls back to the default
38-
behavior for the operation.
39-
40-
The second handler is used to perform comparison operations with
41-
non-objects. The value written into result must be an IS_LONG with value
42-
-1 (smaller), 0 (equal) or 1 (greater). The return value is a SUCCESS/FAILURE
43-
return code. The difference between this handler and compare_objects is
44-
that it will be triggered for comparisons with non-objects and objects of
45-
different types. It takes precedence over compare_objects.
46-
47-
Further docs in the RFC: https://wiki.php.net/rfc/operator_overloading_gmp
48-
49-
b. return_value_ptr now always available, RETVAL_ZVAL_FAST macros
50-
51-
The return_value_ptr argument to internal functions is now always set.
52-
Previously it was only available for functions returning by-reference.
53-
return_value_ptr can now be used to return zvals without copying them.
54-
For this purpose two new macros are provided:
55-
56-
RETVAL_ZVAL_FAST(zv); /* analog to RETVAL_ZVAL(zv, 1, 0) */
57-
RETURN_ZVAL_FAST(zv); /* analog to RETURN_ZVAL(zv, 1, 0) */
58-
59-
The macros behave similarly to the non-FAST variants with copy=1 and
60-
dtor=0, but will try to return the zval without making a copy by utilizing
61-
return_value_ptr.
62-
63-
c. POST data handling
64-
65-
The sapi_request_info's members post_data, post_data_len and raw_post_data as
66-
well as raw_post_data_len have been replaced with a temp PHP stream
67-
request_body.
68-
69-
The recommended way to access raw POST data is to open and use a php://input
70-
stream wrapper. It is safe to be used concurrently and more than once.
71-
72-
d. Arginfo changes
73-
74-
The pass_rest_by_reference argument of the ZEND_BEGIN_ARG_INFO and
75-
ZEND_BEGIN_ARG_INFO_EX() is no longer used. The value passed to it is ignored.
76-
77-
Instead a variadic argument is created using ZEND_ARG_VARIADIC_INFO():
78-
79-
ZEND_ARG_VARIADIC_INFO(0, name) /* pass rest by value */
80-
ZEND_ARG_VARIADIC_INFO(1, name) /* pass rest by reference */
81-
ZEND_ARG_VARIADIC_INFO(ZEND_SEND_PREFER_REF, name)
82-
/* pass rest by prefer-ref */
83-
84-
ZEND_ARG_VARIADIC_INFO() should only be used for the last argument.
85-
86-
The following changes were applied to the zend_arg_info struct:
87-
88-
typedef struct _zend_arg_info {
89-
const char *class_name;
90-
zend_uint class_name_len;
91-
zend_uchar type_hint;
92-
+ zend_uchar pass_by_reference;
93-
zend_bool allow_null;
94-
- zend_bool pass_by_reference;
95-
+ zend_bool is_variadic;
96-
} zend_arg_info;
97-
98-
The following changes were applied to the zend_internal_function_info struct:
99-
100-
typedef struct _zend_internal_function_info {
101-
zend_uint required_num_args;
102-
zend_uchar _type_hint;
103-
zend_bool return_reference;
104-
- zend_bool pass_rest_by_reference;
105-
+ zend_bool _allow_null;
106-
+ zend_bool _is_variadic;
107-
} zend_internal_function_info;
108-
109-
The CHECK_ARG_SEND_TYPE(), ARG_MUST_BE_SENT_BY_REF(),
110-
ARG_SHOULD_BE_SENT_BY_REF() and ARG_MAY_BE_SENT_BY_REF() macros now assume
111-
that the argument passed to them is a zend_function* and that it is non-NULL.
11220

11321
========================
11422
2. Build system changes
11523
========================
11624

117-
a. Unix build system changes
118-
- The bison version check is now a blacklist instead of a whitelist.
119-
- The bison binary can be specified through the YACC environment/configure
120-
variable. Previously `bison` was assumed to be in $PATH.
121-
122-
b. Windows build system changes
123-
-
12425

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
118118
])
119119

120120
PHP_MAJOR_VERSION=5
121-
PHP_MINOR_VERSION=6
121+
PHP_MINOR_VERSION=7
122122
PHP_RELEASE_VERSION=0
123123
PHP_EXTRA_VERSION="-dev"
124124
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"

main/php_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* automatically generated by configure */
22
/* edit configure.in to change version number */
33
#define PHP_MAJOR_VERSION 5
4-
#define PHP_MINOR_VERSION 6
4+
#define PHP_MINOR_VERSION 7
55
#define PHP_RELEASE_VERSION 0
66
#define PHP_EXTRA_VERSION "-dev"
7-
#define PHP_VERSION "5.6.0-dev"
8-
#define PHP_VERSION_ID 50600
7+
#define PHP_VERSION "5.7.0-dev"
8+
#define PHP_VERSION_ID 50700

0 commit comments

Comments
 (0)