Merge branch 'PHP-7.4'

This commit is contained in:
Nikita Popov 2019-06-04 16:14:46 +02:00
commit 623eedbbd5
7 changed files with 14 additions and 22 deletions

View File

@ -163,13 +163,7 @@ TSRM_API const char *tsrm_api_name(void);
#define TSRMG_FAST_BULK_STATIC(offset, type) ((type) (((char*) TSRMLS_CACHE)+(offset)))
#define TSRMLS_CACHE_EXTERN() extern TSRM_TLS void *TSRMLS_CACHE;
#define TSRMLS_CACHE_DEFINE() TSRM_TLS void *TSRMLS_CACHE = NULL;
#if ZEND_DEBUG
#define TSRMLS_CACHE_UPDATE() TSRMLS_CACHE = tsrm_get_ls_cache()
#define TSRMLS_CACHE_RESET()
#else
#define TSRMLS_CACHE_UPDATE() if (!TSRMLS_CACHE) TSRMLS_CACHE = tsrm_get_ls_cache()
#define TSRMLS_CACHE_RESET() TSRMLS_CACHE = NULL
#endif
#define TSRMLS_CACHE _tsrm_ls_cache
#ifdef __cplusplus

View File

@ -83,10 +83,10 @@ jobs:
parameters:
configurationName: ${{ parameters.configurationName }}
runTestsName: 'OpCache'
runTestsParameters: -dopcache.enable_cli=1
runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1
- ${{ if ne(variables['Build.SourceBranch'], 'refs/heads/PHP-7.4') }}:
- template: test.yml
parameters:
configurationName: ${{ parameters.configurationName }}
runTestsName: 'JIT'
runTestsParameters: -dopcache.enable_cli=1 -dopcache.jit_buffer_size=16M
runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.jit_buffer_size=16M

View File

@ -30,12 +30,12 @@ socket_set_nonblock($sends1) or die("Could not put in non-blocking mode");
echo "creating receive socket\n";
$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
var_dump($s);
$br = socket_bind($s, '::0', 3000) or die("err");
$br = socket_bind($s, '::0', 3001) or die("err");
var_dump($br);
socket_set_option($s, IPPROTO_IPV6, IPV6_RECVPKTINFO, 1) or die("err");
$r = socket_sendto($sends1, $m = "testing packet", strlen($m), 0, $addr, 3000);
$r = socket_sendto($sends1, $m = "testing packet", strlen($m), 0, $addr, 3001);
var_dump($r);
if ($r < 12) die;
checktimeout($s, 500);

View File

@ -27,21 +27,21 @@ $addr = '::1';
echo "creating send socket\n";
$sends1 = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
var_dump($sends1);
$br = socket_bind($sends1, '::', 7001) or die("err");
$br = socket_bind($sends1, '::', 7002) or die("err");
var_dump($br);
socket_set_nonblock($sends1) or die("Could not put in non-blocking mode");
echo "creating receive socket\n";
$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
var_dump($s);
$br = socket_bind($s, '::0', 3000) or die("err");
$br = socket_bind($s, '::0', 3002) or die("err");
var_dump($br);
socket_set_option($s, IPPROTO_IPV6, IPV6_RECVPKTINFO, 1) or die("err");
socket_set_option($s, IPPROTO_IPV6, IPV6_RECVTCLASS, 1) or die("err");
$r = socket_sendmsg($sends1, [
"name" => [ "addr" => "::1", "port" => 3000],
"name" => [ "addr" => "::1", "port" => 3002],
"iov" => ["test ", "thing", "\n"],
"control" => [[
"level" => IPPROTO_IPV6,
@ -74,7 +74,7 @@ Array
(
[family] => %d
[addr] => ::1
[port] => 7001
[port] => 7002
[flowinfo] => 0
[scope_id] => 0
)

View File

@ -18,21 +18,21 @@ $addr = '::1';
echo "creating send socket\n";
$sends1 = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
var_dump($sends1);
$br = socket_bind($sends1, '::', 7001) or die("err");
$br = socket_bind($sends1, '::', 7003) or die("err");
var_dump($br);
socket_set_nonblock($sends1) or die("Could not put in non-blocking mode");
echo "creating receive socket\n";
$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
var_dump($s);
$br = socket_bind($s, '::0', 3000) or die("err");
$br = socket_bind($s, '::0', 3003) or die("err");
var_dump($br);
socket_set_option($s, IPPROTO_IPV6, IPV6_RECVPKTINFO, 1) or die("err");
socket_set_option($s, IPPROTO_IPV6, IPV6_RECVTCLASS, 1) or die("err");
$r = socket_sendmsg($sends1, [
"name" => [ "addr" => "::1", "port" => 3000],
"name" => [ "addr" => "::1", "port" => 3003],
"iov" => ["test ", "thing", "\n"],
"control" => [[
"level" => IPPROTO_IPV6,
@ -68,7 +68,7 @@ Array
(
[family] => %d
[addr] => ::1
[port] => 7001
[port] => 7003
[flowinfo] => 0
[scope_id] => 0
)

View File

@ -8,7 +8,6 @@ if test "$PHP_ZIP" != "no"; then
PHP_EVAL_INCLINE($LIBZIP_CFLAGS)
PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)
LIBZIP_LIBDIR=`$PKG_CONFIG --variable=libdir libzip`
AC_DEFINE(HAVE_LIBZIP, 1, [ ])
@ -18,7 +17,7 @@ if test "$PHP_ZIP" != "no"; then
], [
AC_MSG_WARN(Libzip >= 1.2.0 needed for encryption support)
], [
-L$LIBZIP_LIBDIR
$LIBZIP_LIBS
])
PHP_CHECK_LIBRARY(zip, zip_libzip_version,
@ -26,7 +25,7 @@ if test "$PHP_ZIP" != "no"; then
AC_DEFINE(HAVE_LIBZIP_VERSION, 1, [Libzip >= 1.3.1 with zip_libzip_version function])
], [
], [
-L$LIBZIP_LIBDIR
$LIBZIP_LIBS
])
AC_DEFINE(HAVE_ZIP,1,[ ])

View File

@ -225,7 +225,6 @@ EMBED_SAPI_API void php_embed_shutdown(void)
sapi_shutdown();
#ifdef ZTS
tsrm_shutdown();
TSRMLS_CACHE_RESET();
#endif
if (php_embed_module.ini_entries) {
free(php_embed_module.ini_entries);