summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 11:06:57 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 22:03:36 +0200
commit7aacc705d03887c64a90489e367f4c40b46aa3c2 (patch)
treeec7388f82b37e8611c7513aa95678d7feae82329 /ext/sockets
parent05478e985eb50c473054b4f1bf174f48ead78784 (diff)
downloadphp-git-7aacc705d03887c64a90489e367f4c40b46aa3c2.tar.gz
Add many missing closing PHP tags to tests
Closes GH-5958
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/tests/bug49341.phpt1
-rw-r--r--ext/sockets/tests/bug51958.phpt1
-rw-r--r--ext/sockets/tests/bug63000.phpt1
-rw-r--r--ext/sockets/tests/bug76839.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv4_recv.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv4_send.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv4_send_error.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv6_recv.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv6_recv_limited.phpt1
-rw-r--r--ext/sockets/tests/mcast_ipv6_send.phpt1
-rw-r--r--ext/sockets/tests/socket_addrinfo_bind.phpt1
-rw-r--r--ext/sockets/tests/socket_addrinfo_connect.phpt1
-rw-r--r--ext/sockets/tests/socket_addrinfo_explain.phpt1
-rw-r--r--ext/sockets/tests/socket_addrinfo_lookup.phpt1
-rw-r--r--ext/sockets/tests/socket_cmsg_credentials.phpt1
-rw-r--r--ext/sockets/tests/socket_cmsg_rights.phpt1
-rw-r--r--ext/sockets/tests/socket_create_listen-nobind.phpt1
-rw-r--r--ext/sockets/tests/socket_create_listen-win32.phpt1
-rw-r--r--ext/sockets/tests/socket_create_listen.phpt1
-rw-r--r--ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt1
-rw-r--r--ext/sockets/tests/socket_create_pair.phpt1
-rw-r--r--ext/sockets/tests/socket_export_stream-1.phpt1
-rw-r--r--ext/sockets/tests/socket_export_stream-3.phpt1
-rw-r--r--ext/sockets/tests/socket_export_stream-4-win.phpt1
-rw-r--r--ext/sockets/tests/socket_export_stream-4.phpt1
-rw-r--r--ext/sockets/tests/socket_export_stream-5.phpt1
-rw-r--r--ext/sockets/tests/socket_import_stream-1.phpt1
-rw-r--r--ext/sockets/tests/socket_import_stream-3.phpt1
-rw-r--r--ext/sockets/tests/socket_import_stream-4-win.phpt1
-rw-r--r--ext/sockets/tests/socket_import_stream-4.phpt1
-rw-r--r--ext/sockets/tests/socket_import_stream-5.phpt1
-rw-r--r--ext/sockets/tests/socket_listen-wrongparams.phpt1
-rw-r--r--ext/sockets/tests/socket_recvmsg.phpt1
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-1-win32.phpt1
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-1.phpt1
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-2.phpt1
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-4.phpt1
-rw-r--r--ext/sockets/tests/socket_select.phpt1
-rw-r--r--ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt1
-rw-r--r--ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt1
-rw-r--r--ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt1
-rw-r--r--ext/sockets/tests/socket_set_option_in6_pktinfo.phpt1
42 files changed, 42 insertions, 0 deletions
diff --git a/ext/sockets/tests/bug49341.phpt b/ext/sockets/tests/bug49341.phpt
index a73c4c1c63..ba9a81e481 100644
--- a/ext/sockets/tests/bug49341.phpt
+++ b/ext/sockets/tests/bug49341.phpt
@@ -11,5 +11,6 @@ if (PHP_OS !== 'Darwin' && false === strpos(PHP_OS, 'BSD')) {
--FILE--
<?php
var_dump(defined('SO_REUSEPORT'));
+?>
--EXPECT--
bool(true)
diff --git a/ext/sockets/tests/bug51958.phpt b/ext/sockets/tests/bug51958.phpt
index b4d75cec48..9756266343 100644
--- a/ext/sockets/tests/bug51958.phpt
+++ b/ext/sockets/tests/bug51958.phpt
@@ -18,5 +18,6 @@ socket_listen($listenfd);
socket_set_nonblock($listenfd);
$connfd = @socket_accept($listenfd);
echo socket_last_error();
+?>
--EXPECT--
10035
diff --git a/ext/sockets/tests/bug63000.phpt b/ext/sockets/tests/bug63000.phpt
index 024f784ccb..e92ec0f9e9 100644
--- a/ext/sockets/tests/bug63000.phpt
+++ b/ext/sockets/tests/bug63000.phpt
@@ -15,5 +15,6 @@ $so = socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, array(
"interface" => 0,
));
var_dump($so);
+?>
--EXPECT--
bool(true)
diff --git a/ext/sockets/tests/bug76839.phpt b/ext/sockets/tests/bug76839.phpt
index 49aff731f7..5c45dab873 100644
--- a/ext/sockets/tests/bug76839.phpt
+++ b/ext/sockets/tests/bug76839.phpt
@@ -42,6 +42,7 @@ for ($i = 0; $i < 10; $i++) {
socket_close($senderSocket);
unlink($senderSocketPath);
}
+?>
--EXPECT--
Received 'Ping!'
Responded to sender with 'Pong!'
diff --git a/ext/sockets/tests/mcast_ipv4_recv.phpt b/ext/sockets/tests/mcast_ipv4_recv.phpt
index 28237f415e..0f17eb67c6 100644
--- a/ext/sockets/tests/mcast_ipv4_recv.phpt
+++ b/ext/sockets/tests/mcast_ipv4_recv.phpt
@@ -152,6 +152,7 @@ if ($i == 8) {
}
}
+?>
--EXPECTF--
creating send socket bound to 127.0.0.1
bool(true)
diff --git a/ext/sockets/tests/mcast_ipv4_send.phpt b/ext/sockets/tests/mcast_ipv4_send.phpt
index 58395aed26..e1e88aca41 100644
--- a/ext/sockets/tests/mcast_ipv4_send.phpt
+++ b/ext/sockets/tests/mcast_ipv4_send.phpt
@@ -45,6 +45,7 @@ var_dump($r);
$r = socket_get_option($s, $level, IP_MULTICAST_IF);
var_dump($r);
echo "\n";
+?>
--EXPECT--
Setting IP_MULTICAST_TTL
bool(true)
diff --git a/ext/sockets/tests/mcast_ipv4_send_error.phpt b/ext/sockets/tests/mcast_ipv4_send_error.phpt
index 5d254c6843..978b78938b 100644
--- a/ext/sockets/tests/mcast_ipv4_send_error.phpt
+++ b/ext/sockets/tests/mcast_ipv4_send_error.phpt
@@ -66,6 +66,7 @@ try {
$r = socket_get_option($s, $level, IP_MULTICAST_TTL);
var_dump($r);
echo "\n";
+?>
--EXPECT--
Setting IP_MULTICAST_LOOP with 256
bool(true)
diff --git a/ext/sockets/tests/mcast_ipv6_recv.phpt b/ext/sockets/tests/mcast_ipv6_recv.phpt
index 3bc791a451..757bf9889b 100644
--- a/ext/sockets/tests/mcast_ipv6_recv.phpt
+++ b/ext/sockets/tests/mcast_ipv6_recv.phpt
@@ -178,6 +178,7 @@ if ($i == 8) {
}
}
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/mcast_ipv6_recv_limited.phpt b/ext/sockets/tests/mcast_ipv6_recv_limited.phpt
index dda3756b7e..9bf0bbf914 100644
--- a/ext/sockets/tests/mcast_ipv6_recv_limited.phpt
+++ b/ext/sockets/tests/mcast_ipv6_recv_limited.phpt
@@ -106,6 +106,7 @@ if ($i == 3) {
}
}
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/mcast_ipv6_send.phpt b/ext/sockets/tests/mcast_ipv6_send.phpt
index e4bd5f0467..d9fec9e72b 100644
--- a/ext/sockets/tests/mcast_ipv6_send.phpt
+++ b/ext/sockets/tests/mcast_ipv6_send.phpt
@@ -49,6 +49,7 @@ var_dump($r);
$r = socket_get_option($s, $level, IPV6_MULTICAST_IF);
var_dump($r);
echo "\n";
+?>
--EXPECT--
Setting IPV6_MULTICAST_TTL
bool(true)
diff --git a/ext/sockets/tests/socket_addrinfo_bind.phpt b/ext/sockets/tests/socket_addrinfo_bind.phpt
index 40a746bdb9..d8b18d8030 100644
--- a/ext/sockets/tests/socket_addrinfo_bind.phpt
+++ b/ext/sockets/tests/socket_addrinfo_bind.phpt
@@ -13,6 +13,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
));
var_dump(socket_addrinfo_bind($addrinfo[0]));
echo "Done";
+?>
--EXPECT--
object(Socket)#2 (0) {
}
diff --git a/ext/sockets/tests/socket_addrinfo_connect.phpt b/ext/sockets/tests/socket_addrinfo_connect.phpt
index a5a604ee61..e15356f7b5 100644
--- a/ext/sockets/tests/socket_addrinfo_connect.phpt
+++ b/ext/sockets/tests/socket_addrinfo_connect.phpt
@@ -13,6 +13,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
));
var_dump(socket_addrinfo_connect($addrinfo[0]));
echo "Done";
+?>
--EXPECT--
object(Socket)#2 (0) {
}
diff --git a/ext/sockets/tests/socket_addrinfo_explain.phpt b/ext/sockets/tests/socket_addrinfo_explain.phpt
index 16366ac1be..16df7d45f3 100644
--- a/ext/sockets/tests/socket_addrinfo_explain.phpt
+++ b/ext/sockets/tests/socket_addrinfo_explain.phpt
@@ -16,6 +16,7 @@ $result = socket_addrinfo_explain($addrinfo[0]);
unset($result['ai_canonname']);
var_dump($result);
echo "Done";
+?>
--EXPECTF--
array(5) {
["ai_flags"]=>
diff --git a/ext/sockets/tests/socket_addrinfo_lookup.phpt b/ext/sockets/tests/socket_addrinfo_lookup.phpt
index 8393eaa7ef..2d9ef39196 100644
--- a/ext/sockets/tests/socket_addrinfo_lookup.phpt
+++ b/ext/sockets/tests/socket_addrinfo_lookup.phpt
@@ -14,6 +14,7 @@ $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
));
var_dump($addrinfo[0]);
echo "Done";
+?>
--EXPECTF--
Notice: socket_addrinfo_lookup(): Unknown hint invalid in %ssocket_addrinfo_lookup.php on line %d
object(AddressInfo)#%d (0) {
diff --git a/ext/sockets/tests/socket_cmsg_credentials.phpt b/ext/sockets/tests/socket_cmsg_credentials.phpt
index 33f770510f..31d7eb4799 100644
--- a/ext/sockets/tests/socket_cmsg_credentials.phpt
+++ b/ext/sockets/tests/socket_cmsg_credentials.phpt
@@ -56,6 +56,7 @@ print_r($data);
$pid = getmypid();
var_dump($data['control'][0]['data']['pid'] === $pid);
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/socket_cmsg_rights.phpt b/ext/sockets/tests/socket_cmsg_rights.phpt
index 7c7334ffca..a77f493650 100644
--- a/ext/sockets/tests/socket_cmsg_rights.phpt
+++ b/ext/sockets/tests/socket_cmsg_rights.phpt
@@ -77,6 +77,7 @@ if ($data["control"]) {
echo "FAIL CONTROL\n";
var_dump($data);
}
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/socket_create_listen-nobind.phpt b/ext/sockets/tests/socket_create_listen-nobind.phpt
index d6a9a767a3..b42d9c7c26 100644
--- a/ext/sockets/tests/socket_create_listen-nobind.phpt
+++ b/ext/sockets/tests/socket_create_listen-nobind.phpt
@@ -19,6 +19,7 @@ if (@socket_create_listen(80)) {
--FILE--
<?php
$sock = socket_create_listen(80);
+?>
--EXPECTF--
Warning: socket_create_listen(): unable to bind to given address [13]: Permission denied in %s on line %d
--CREDITS--
diff --git a/ext/sockets/tests/socket_create_listen-win32.phpt b/ext/sockets/tests/socket_create_listen-win32.phpt
index f7306262f4..89d8dde0b2 100644
--- a/ext/sockets/tests/socket_create_listen-win32.phpt
+++ b/ext/sockets/tests/socket_create_listen-win32.phpt
@@ -13,6 +13,7 @@ if (!extension_loaded('sockets')) {
$sock = socket_create_listen(31338);
socket_getsockname($sock, $addr, $port);
var_dump($addr, $port);
+?>
--EXPECT--
string(9) "127.0.0.1"
int(31338)
diff --git a/ext/sockets/tests/socket_create_listen.phpt b/ext/sockets/tests/socket_create_listen.phpt
index 7083b0a1b9..180b91368c 100644
--- a/ext/sockets/tests/socket_create_listen.phpt
+++ b/ext/sockets/tests/socket_create_listen.phpt
@@ -13,6 +13,7 @@ if (!extension_loaded('sockets')) {
$sock = socket_create_listen(31338);
socket_getsockname($sock, $addr, $port);
var_dump($addr, $port);
+?>
--EXPECT--
string(7) "0.0.0.0"
int(31338)
diff --git a/ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt b/ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt
index de939f6657..5b6934d965 100644
--- a/ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt
+++ b/ext/sockets/tests/socket_create_pair-wrongparams-win32.phpt
@@ -24,6 +24,7 @@ try {
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
bool(true)
socket_create_pair(): Argument #1 ($domain) must be either AF_UNIX, AF_INET6 or AF_INET
diff --git a/ext/sockets/tests/socket_create_pair.phpt b/ext/sockets/tests/socket_create_pair.phpt
index 604d5a2319..7fc1838f71 100644
--- a/ext/sockets/tests/socket_create_pair.phpt
+++ b/ext/sockets/tests/socket_create_pair.phpt
@@ -15,6 +15,7 @@ if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
}
socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
var_dump($sockets);
+?>
--EXPECT--
array(2) {
[0]=>
diff --git a/ext/sockets/tests/socket_export_stream-1.phpt b/ext/sockets/tests/socket_export_stream-1.phpt
index f8f560b60b..a3788f8c72 100644
--- a/ext/sockets/tests/socket_export_stream-1.phpt
+++ b/ext/sockets/tests/socket_export_stream-1.phpt
@@ -21,6 +21,7 @@ socket_write($s1, "test message");
socket_close($s1);
var_dump(stream_get_contents($stream));
+?>
--EXPECTF--
resource(%d) of type (stream)
string(12) "test message"
diff --git a/ext/sockets/tests/socket_export_stream-3.phpt b/ext/sockets/tests/socket_export_stream-3.phpt
index ed3b7f83e5..a1bffdbad6 100644
--- a/ext/sockets/tests/socket_export_stream-3.phpt
+++ b/ext/sockets/tests/socket_export_stream-3.phpt
@@ -37,6 +37,7 @@ var_dump($so);
stream_set_blocking($stream, 0);
var_dump(fread($stream, strlen($m)));
echo "Done.\n";
+?>
--EXPECTF--
resource(%d) of type (stream)
bool(true)
diff --git a/ext/sockets/tests/socket_export_stream-4-win.phpt b/ext/sockets/tests/socket_export_stream-4-win.phpt
index a1899d3eff..067e9fcc19 100644
--- a/ext/sockets/tests/socket_export_stream-4-win.phpt
+++ b/ext/sockets/tests/socket_export_stream-4-win.phpt
@@ -73,6 +73,7 @@ socket_bind($sock4, '0.0.0.0', 0);
$stream4 = socket_export_stream($sock4);
socket_close($sock4);
test($stream4, $sock4);
+?>
--EXPECTF--
normal
stream_set_blocking 1
diff --git a/ext/sockets/tests/socket_export_stream-4.phpt b/ext/sockets/tests/socket_export_stream-4.phpt
index 7a38ba9129..390689cce5 100644
--- a/ext/sockets/tests/socket_export_stream-4.phpt
+++ b/ext/sockets/tests/socket_export_stream-4.phpt
@@ -75,6 +75,7 @@ socket_close($sock4);
test($stream4, $sock4);
echo "Done.\n";
+?>
--EXPECTF--
normal
stream_set_blocking 1
diff --git a/ext/sockets/tests/socket_export_stream-5.phpt b/ext/sockets/tests/socket_export_stream-5.phpt
index 219fec5574..3ce2c2579c 100644
--- a/ext/sockets/tests/socket_export_stream-5.phpt
+++ b/ext/sockets/tests/socket_export_stream-5.phpt
@@ -24,5 +24,6 @@ $stream1 = socket_export_stream($sock1);
zend_leak_variable($sock1);
echo "Done.\n";
+?>
--EXPECT--
Done.
diff --git a/ext/sockets/tests/socket_import_stream-1.phpt b/ext/sockets/tests/socket_import_stream-1.phpt
index 8608af33d4..9931535721 100644
--- a/ext/sockets/tests/socket_import_stream-1.phpt
+++ b/ext/sockets/tests/socket_import_stream-1.phpt
@@ -20,6 +20,7 @@ socket_write($sock, "test message");
socket_close($sock);
var_dump(stream_get_contents($s1));
+?>
--EXPECTF--
object(Socket)#%d (0) {
}
diff --git a/ext/sockets/tests/socket_import_stream-3.phpt b/ext/sockets/tests/socket_import_stream-3.phpt
index 6f340a4e6c..972a3d6fcf 100644
--- a/ext/sockets/tests/socket_import_stream-3.phpt
+++ b/ext/sockets/tests/socket_import_stream-3.phpt
@@ -36,6 +36,7 @@ var_dump($so);
stream_set_blocking($stream, 0);
var_dump(fread($stream, strlen($m)));
echo "Done.\n";
+?>
--EXPECTF--
object(Socket)#%d (0) {
}
diff --git a/ext/sockets/tests/socket_import_stream-4-win.phpt b/ext/sockets/tests/socket_import_stream-4-win.phpt
index 0845d8b510..9b5863cf2b 100644
--- a/ext/sockets/tests/socket_import_stream-4-win.phpt
+++ b/ext/sockets/tests/socket_import_stream-4-win.phpt
@@ -68,6 +68,7 @@ $stream4 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVE
$sock4 = socket_import_stream($stream4);
socket_close($sock4);
test($stream4, $sock4);
+?>
--EXPECTF--
normal
stream_set_blocking 1
diff --git a/ext/sockets/tests/socket_import_stream-4.phpt b/ext/sockets/tests/socket_import_stream-4.phpt
index bd2ac05aef..592dbd6c04 100644
--- a/ext/sockets/tests/socket_import_stream-4.phpt
+++ b/ext/sockets/tests/socket_import_stream-4.phpt
@@ -70,6 +70,7 @@ socket_close($sock4);
test($stream4, $sock4);
echo "Done.\n";
+?>
--EXPECTF--
normal
stream_set_blocking 1
diff --git a/ext/sockets/tests/socket_import_stream-5.phpt b/ext/sockets/tests/socket_import_stream-5.phpt
index 5eaf579854..ce10168650 100644
--- a/ext/sockets/tests/socket_import_stream-5.phpt
+++ b/ext/sockets/tests/socket_import_stream-5.phpt
@@ -22,5 +22,6 @@ $sock1 = socket_import_stream($stream1);
zend_leak_variable($sock1);
echo "Done.\n";
+?>
--EXPECT--
Done.
diff --git a/ext/sockets/tests/socket_listen-wrongparams.phpt b/ext/sockets/tests/socket_listen-wrongparams.phpt
index b5715a5ff5..5262d5e4b3 100644
--- a/ext/sockets/tests/socket_listen-wrongparams.phpt
+++ b/ext/sockets/tests/socket_listen-wrongparams.phpt
@@ -12,6 +12,7 @@ if (!extension_loaded('sockets')) {
<?php
$socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
var_dump(socket_listen($socket));
+?>
--EXPECTF--
Warning: socket_listen(): unable to listen on socket [%d]: Invalid argument in %s on line %d
bool(false)
diff --git a/ext/sockets/tests/socket_recvmsg.phpt b/ext/sockets/tests/socket_recvmsg.phpt
index 21f7b73058..596954eb23 100644
--- a/ext/sockets/tests/socket_recvmsg.phpt
+++ b/ext/sockets/tests/socket_recvmsg.phpt
@@ -47,6 +47,7 @@ $data = [
];
if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
print_r($data);
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt b/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
index 490bb7319a..21c3c9e8d9 100644
--- a/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
@@ -18,6 +18,7 @@ $write = null;
$except = null;
$time = -1;
var_dump(socket_select($sockets, $write, $except, $time));
+?>
--EXPECT--
int(0)
--CREDITS--
diff --git a/ext/sockets/tests/socket_select-wrongparams-1.phpt b/ext/sockets/tests/socket_select-wrongparams-1.phpt
index 2658063e36..91286d1372 100644
--- a/ext/sockets/tests/socket_select-wrongparams-1.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-1.phpt
@@ -18,6 +18,7 @@ $write = null;
$except = null;
$time = -1;
var_dump(socket_select($sockets, $write, $except, $time));
+?>
--EXPECTF--
Warning: socket_select(): Unable to select [%d]: Invalid argument in %s on line %d
bool(false)
diff --git a/ext/sockets/tests/socket_select-wrongparams-2.phpt b/ext/sockets/tests/socket_select-wrongparams-2.phpt
index 601ddb4efa..3bbd394001 100644
--- a/ext/sockets/tests/socket_select-wrongparams-2.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-2.phpt
@@ -17,6 +17,7 @@ try {
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
+?>
--EXPECTF--
socket_select(): At least one array argument must be passed
--CREDITS--
diff --git a/ext/sockets/tests/socket_select-wrongparams-4.phpt b/ext/sockets/tests/socket_select-wrongparams-4.phpt
index 7a107b41df..e2b22913e4 100644
--- a/ext/sockets/tests/socket_select-wrongparams-4.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-4.phpt
@@ -22,6 +22,7 @@ $except = null;
$time = 0;
$usec = 2000000;
var_dump(socket_select($sockets, $write, $except, $time, $usec));
+?>
--EXPECT--
int(0)
--CREDITS--
diff --git a/ext/sockets/tests/socket_select.phpt b/ext/sockets/tests/socket_select.phpt
index 5d55111995..765c045266 100644
--- a/ext/sockets/tests/socket_select.phpt
+++ b/ext/sockets/tests/socket_select.phpt
@@ -19,6 +19,7 @@ $write = null;
$except = null;
$ref =& $sockets[0]; // bug #78038
var_dump(socket_select($sockets, $write, $except, 0));
+?>
--EXPECT--
int(0)
--CREDITS--
diff --git a/ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt b/ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt
index 107aa626e8..a5aaea35a4 100644
--- a/ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt
+++ b/ext/sockets/tests/socket_sendrecvmsg_multi_msg-unix.phpt
@@ -60,6 +60,7 @@ $data = [
];
if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
print_r($data);
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt b/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt
index 9e004afa22..9fe57a8258 100644
--- a/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt
+++ b/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt
@@ -58,6 +58,7 @@ $data = [
];
if (!socket_recvmsg($s, $data, 0)) die("recvmsg");
print_r($data);
+?>
--EXPECTF--
creating send socket
object(Socket)#%d (0) {
diff --git a/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt b/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt
index fbc4da3861..2aa5f7f115 100644
--- a/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt
+++ b/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt
@@ -44,6 +44,7 @@ require 'ipv6_skipif.inc';
echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
socket_close($socket);
+?>
--EXPECTF--
Warning: socket_recvfrom(): unable to recvfrom [10022]: %s
in %s on line %d
diff --git a/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt b/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt
index 8ee5218cb0..1feba8349b 100644
--- a/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt
+++ b/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt
@@ -31,6 +31,7 @@ var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, [
//A work-around with is sort-of possible (with IPV6_2292PKTOPTIONS),
//but not worth it
//var_dump(socket_get_option($s, IPPROTO_IPV6, IPV6_PKTINFO));
+?>
--EXPECTF--
Warning: socket_set_option(): error converting user data (path: in6_pktinfo): The key 'addr' is required in %s on line %d
bool(false)