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