mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-11 19:20:50 +00:00
Compare commits
9
Commits
php-7.1.24
...
php-7.0.19
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42b8d368f8 | ||
|
|
a466f9bd7e | ||
|
|
bdabd22def | ||
|
|
09e819736a | ||
|
|
3b77751bb1 | ||
|
|
c070353420 | ||
|
|
9e89e62148 | ||
|
|
ca51b12d3a | ||
|
|
36f14d1265 |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2017 PHP 7.0.19
|
||||
11 May 2017 PHP 7.0.19
|
||||
|
||||
- Core:
|
||||
. Fixed bug #74188 (Null coalescing operator fails for undeclared static
|
||||
@@ -10,6 +10,7 @@ PHP NEWS
|
||||
(Matt Ficken)
|
||||
. Fixed bug #74337 (php-cgi.exe crash on facebook callback).
|
||||
(Anton Serbulov)
|
||||
. Patch for bug #74216 was reverted. (Anatol)
|
||||
|
||||
- Date:
|
||||
. Fixed bug #74404 (Wrong reflection on DateTimeZone::getTransitions).
|
||||
@@ -32,6 +33,10 @@ PHP NEWS
|
||||
. Fixed bug #74433 (wrong reflection for Normalizer methods). (villfa)
|
||||
. Fixed bug #74439 (wrong reflection for Locale methods). (villfa)
|
||||
|
||||
- MySQLi:
|
||||
. Fixed bug #74432 (mysqli_connect adding ":3306" to $host if $port parameter
|
||||
not given). (Anatol)
|
||||
|
||||
- MySQLnd:
|
||||
. Added support for MySQL 8.0 types. (Johannes)
|
||||
. Fixed bug #74376 (Invalid free of persistent results on error/connection
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
|
||||
PHP_MAJOR_VERSION=7
|
||||
PHP_MINOR_VERSION=0
|
||||
PHP_RELEASE_VERSION=19
|
||||
PHP_EXTRA_VERSION="-dev"
|
||||
PHP_EXTRA_VERSION=""
|
||||
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
|
||||
PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION`
|
||||
|
||||
|
||||
@@ -1007,7 +1007,8 @@ static int add_oid_section(struct php_x509_request * req) /* {{{ */
|
||||
}
|
||||
for (i = 0; i < sk_CONF_VALUE_num(sktmp); i++) {
|
||||
cnf = sk_CONF_VALUE_value(sktmp, i);
|
||||
if (OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) {
|
||||
if (OBJ_sn2nid(cnf->name) == NID_undef && OBJ_ln2nid(cnf->name) == NID_undef &&
|
||||
OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) {
|
||||
php_error_docref(NULL, E_WARNING, "problem creating object %s=%s", cnf->name, cnf->value);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
@@ -7,11 +7,12 @@ if (!extension_loaded("openssl")) die("skip openssl not loaded");
|
||||
--FILE--
|
||||
<?php
|
||||
$passwords = ["abc\x00defghijkl", "abcdefghikjl"];
|
||||
$conf = ['config' => __DIR__.'/openssl.cnf'];
|
||||
|
||||
foreach($passwords as $password) {
|
||||
$key = openssl_pkey_new();
|
||||
$key = openssl_pkey_new($conf);
|
||||
|
||||
if (openssl_pkey_export($key, $privatePEM, $password) === false) {
|
||||
if (openssl_pkey_export($key, $privatePEM, $password, $conf) === false) {
|
||||
echo "Failed to encrypt.\n";
|
||||
} else {
|
||||
echo "Encrypted!\n";
|
||||
|
||||
@@ -3,6 +3,7 @@ sni_server
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("openssl")) die("skip openssl not loaded");
|
||||
if (OPENSSL_VERSION_NUMBER >= 0x10100000) die("skip OpenSSL < v1.1.0 required");
|
||||
--FILE--
|
||||
<?php
|
||||
$serverCode = <<<'CODE'
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
--TEST--
|
||||
Use of double-port in fsockopen()
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$try = [
|
||||
'127.0.0.1:80',
|
||||
'tcp://127.0.0.1:80',
|
||||
'[::1]:80',
|
||||
'tcp://[::1]:80',
|
||||
'localhost:80',
|
||||
'tcp://localhost:80',
|
||||
];
|
||||
|
||||
foreach ($try as $addr) {
|
||||
echo "== $addr ==\n";
|
||||
var_dump(@fsockopen($addr, 81, $errno, $errstr), $errstr);
|
||||
}
|
||||
--EXPECTF--
|
||||
== 127.0.0.1:80 ==
|
||||
bool(false)
|
||||
string(41) "Failed to parse address "127.0.0.1:80:81""
|
||||
== tcp://127.0.0.1:80 ==
|
||||
bool(false)
|
||||
string(41) "Failed to parse address "127.0.0.1:80:81""
|
||||
== [::1]:80 ==
|
||||
bool(false)
|
||||
string(37) "Failed to parse address "[::1]:80:81""
|
||||
== tcp://[::1]:80 ==
|
||||
bool(false)
|
||||
string(37) "Failed to parse address "[::1]:80:81""
|
||||
== localhost:80 ==
|
||||
bool(false)
|
||||
string(41) "Failed to parse address "localhost:80:81""
|
||||
== tcp://localhost:80 ==
|
||||
bool(false)
|
||||
string(41) "Failed to parse address "localhost:80:81""
|
||||
+2
-2
@@ -3,6 +3,6 @@
|
||||
#define PHP_MAJOR_VERSION 7
|
||||
#define PHP_MINOR_VERSION 0
|
||||
#define PHP_RELEASE_VERSION 19
|
||||
#define PHP_EXTRA_VERSION "-dev"
|
||||
#define PHP_VERSION "7.0.19-dev"
|
||||
#define PHP_EXTRA_VERSION ""
|
||||
#define PHP_VERSION "7.0.19"
|
||||
#define PHP_VERSION_ID 70019
|
||||
+11
-18
@@ -571,44 +571,37 @@ static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *po
|
||||
char *host = NULL;
|
||||
|
||||
#ifdef HAVE_IPV6
|
||||
char *p;
|
||||
|
||||
if (*(str) == '[' && str_len > 1) {
|
||||
/* IPV6 notation to specify raw address with port (i.e. [fe80::1]:80) */
|
||||
char *p = memchr(str + 1, ']', str_len - 2), *e = NULL;
|
||||
p = memchr(str + 1, ']', str_len - 2);
|
||||
if (!p || *(p + 1) != ':') {
|
||||
if (get_err) {
|
||||
*err = strpprintf(0, "Failed to parse IPv6 address \"%s\"", str);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
*portno = strtol(p + 2, &e, 10);
|
||||
if (e && *e && *e != '/') {
|
||||
if (get_err) {
|
||||
*err = strpprintf(0, "Failed to parse address \"%s\"", str);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
*portno = atoi(p + 2);
|
||||
return estrndup(str + 1, p - str - 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (str_len) {
|
||||
colon = memchr(str, ':', str_len - 1);
|
||||
} else {
|
||||
colon = NULL;
|
||||
}
|
||||
|
||||
if (colon) {
|
||||
char *e = NULL;
|
||||
*portno = strtol(colon + 1, &e, 10);
|
||||
if (!e || !*e || *e == '/') {
|
||||
return estrndup(str, colon - str);
|
||||
*portno = atoi(colon + 1);
|
||||
host = estrndup(str, colon - str);
|
||||
} else {
|
||||
if (get_err) {
|
||||
*err = strpprintf(0, "Failed to parse address \"%s\"", str);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (get_err) {
|
||||
*err = strpprintf(0, "Failed to parse address \"%s\"", str);
|
||||
}
|
||||
return NULL;
|
||||
return host;
|
||||
}
|
||||
|
||||
static inline char *parse_ip_address(php_stream_xport_param *xparam, int *portno)
|
||||
|
||||
Reference in new issue
Block a user