Dmitry Stogov [Tue, 27 Oct 2015 12:47:58 +0000 (15:47 +0300)]
Speed up fetching of class entries for self:: parent:: and static::
This is generalized solution for Bob's idea of speed up self::method() calls without ZEND_FETCH_CLASS.
At first, it adds few new opcodes to separate class related behaviour:
FETCH_STATIC_PROP_R
FETCH_STATIC_PROP_W
FETCH_STATIC_PROP_RW
FETCH_STATIC_PROP_FUNC_ARG
FETCH_STATIC_PROP_UNSET
FETCH_STATIC_PROP_IS
UNSET_STATIC_PROP
ISSET_ISEMPTY_STATIC_PROP
FETCH_CLASS_CONSTANT
At seconds, it enables IS_UNUSED operand to fetch (self, parent or static without separate FETCH_CLASS) for new opcodes and the following ones:
INIT_STATIC_METHOD_CALL
NEW
END_INSTANCEOF
Finaly, opcache optimizer had to be fixed to support new opcodes.
Andrey Hristov [Tue, 27 Oct 2015 11:59:09 +0000 (12:59 +0100)]
Another Fix for Bug #68344 MySQLi does not provide way to disable peer certificate validation
Added the possibility to explicitly state that the peer certificate should not be checked.
Back to the default - checking the certificate.
Exported MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT
Usage : mysqli_real_connect( , , , , , MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT)
If mysqli_ssl_set() is not called, but only MYSQLI_CLIENT_SSL is passed, without the (don't) very flag,
then no verification takes place.
Leigh [Mon, 26 Oct 2015 20:40:28 +0000 (20:40 +0000)]
Remove arc4random
There has been a lot of discussion around whether arc4random should be included. Given how many different impementations of it are in the wild, we can't guarantee a secure implementation on all platforms.
Anatol Belski [Mon, 26 Oct 2015 14:57:46 +0000 (15:57 +0100)]
Merge branch 'PHP-7.0'
* PHP-7.0:
update NEWS
Fixed bug #70718 stream_select() when OpenSSL extension is loaded on PHP Win64
unbreak coverage data: fix #line directives in phpdbg parser
exclude datelib from coverage report as asked by Derick
Anatol Belski [Mon, 26 Oct 2015 14:57:26 +0000 (15:57 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
update NEWS
Fixed bug #70718 stream_select() when OpenSSL extension is loaded on PHP Win64
unbreak coverage data: fix #line directives in phpdbg parser
exclude datelib from coverage report as asked by Derick
Bob Weinand [Sun, 25 Oct 2015 17:47:50 +0000 (18:47 +0100)]
Fix refcount reaching 2^32 - 1 for resources
Happens e.g. in proc_close() when nothing is referencing the file handles, e.g. they have refcount 0 when passed to zend_list_close() and then zend_list_delete() which decrements it to (uint32_t) -1
Ferenc Kovacs [Mon, 19 Oct 2015 21:07:58 +0000 (23:07 +0200)]
Merge branch 'PHP-7.0'
* PHP-7.0:
fixup, both catched by nikic
use another character device in this test as /dev/console seems that it is different for lxc containers
the de_DE(iso-8859-1) locale is not available on ubuntu by default, but there is no reason to require that over the utf-8 one
let's try running our testsuite without sudo
Ferenc Kovacs [Mon, 19 Oct 2015 21:02:52 +0000 (23:02 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
fixup, both catched by nikic
use another character device in this test as /dev/console seems that it is different for lxc containers
the de_DE(iso-8859-1) locale is not available on ubuntu by default, but there is no reason to require that over the utf-8 one
let's try running our testsuite without sudo
Ferenc Kovacs [Mon, 19 Oct 2015 20:47:23 +0000 (22:47 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fixup, both catched by nikic
use another character device in this test as /dev/console seems that it is different for lxc containers
the de_DE(iso-8859-1) locale is not available on ubuntu by default, but there is no reason to require that over the utf-8 one
let's try running our testsuite without sudo
Ferenc Kovacs [Mon, 19 Oct 2015 20:44:19 +0000 (22:44 +0200)]
Merge branch 'pr-1483' into PHP-5.5
* pr-1483:
fixup, both catched by nikic
use another character device in this test as /dev/console seems that it is different for lxc containers
the de_DE(iso-8859-1) locale is not available on ubuntu by default, but there is no reason to require that over the utf-8 one
let's try running our testsuite without sudo