1--TEST--
2EAGAIN/EWOULDBLOCK on a non-blocking socket should not result in an error return value
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows');
6?>
7--FILE--
8<?php
9
10$sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP);
11stream_set_blocking($sockets[0], false);
12var_dump(fread($sockets[0], 100));
13
14?>
15--EXPECT--
16string(0) ""
17