1--TEST--
2Error during socket_sendmsg() or socket_recvmsg()
3--EXTENSIONS--
4sockets
5--FILE--
6<?php
7
8$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
9socket_sendmsg($socket, [], -1);
10$message = ['controllen' => 1];
11socket_recvmsg($socket, $message, -1);
12
13?>
14--EXPECTF--
15Warning: socket_sendmsg(): Error in sendmsg [%d]: %a in %s on line %d
16
17Warning: socket_recvmsg(): Error in recvmsg [%d]: %a in %s on line %d
18