From 490ca05883ecd15d6338400e09ec991a8a2a4299 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 28 May 2020 10:18:01 +0200 Subject: [PATCH] Use automatic port assignment in socket_import/export test --- ext/sockets/tests/socket_export_stream-2.phpt | 2 +- ext/sockets/tests/socket_import_stream-2.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/sockets/tests/socket_export_stream-2.phpt b/ext/sockets/tests/socket_export_stream-2.phpt index d3db5e36c8..6d5835e4a5 100644 --- a/ext/sockets/tests/socket_export_stream-2.phpt +++ b/ext/sockets/tests/socket_export_stream-2.phpt @@ -13,7 +13,7 @@ var_dump(socket_export_stream(1, 2)); var_dump(socket_export_stream(1)); var_dump(socket_export_stream(new stdclass)); var_dump(socket_export_stream(fopen(__FILE__, "rb"))); -var_dump(socket_export_stream(stream_socket_server("udp://127.0.0.1:58392", $errno, $errstr, STREAM_SERVER_BIND))); +var_dump(socket_export_stream(stream_socket_server("udp://127.0.0.1:0", $errno, $errstr, STREAM_SERVER_BIND))); $s = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); var_dump($s); socket_close($s); diff --git a/ext/sockets/tests/socket_import_stream-2.phpt b/ext/sockets/tests/socket_import_stream-2.phpt index c9eb583a3d..ab303fdae8 100644 --- a/ext/sockets/tests/socket_import_stream-2.phpt +++ b/ext/sockets/tests/socket_import_stream-2.phpt @@ -14,7 +14,7 @@ var_dump(socket_import_stream(1)); var_dump(socket_import_stream(new stdclass)); var_dump(socket_import_stream(fopen(__FILE__, "rb"))); var_dump(socket_import_stream(socket_create(AF_INET, SOCK_DGRAM, SOL_UDP))); -$s = stream_socket_server("udp://127.0.0.1:58394", $errno, $errstr, STREAM_SERVER_BIND); +$s = stream_socket_server("udp://127.0.0.1:0", $errno, $errstr, STREAM_SERVER_BIND); var_dump($s); var_dump(fclose($s)); var_dump(socket_import_stream($s)); -- 2.40.0