1--TEST--
2GH-10406: feof() behavior change for UNIX based socket resources
3--SKIPIF--
4<?php
5if (!strncasecmp(PHP_OS, 'WIN', 3)) die("skip. Do not run on Windows");
6?>
7--FILE--
8<?php
9$socket_path = '/tmp/gh-10406-test.socket';
10
11if (file_exists($socket_path)) {
12    unlink($socket_path);
13}
14
15$socket = stream_socket_server('unix://' . $socket_path);
16var_dump(feof($socket));
17unlink($socket_path);
18?>
19--EXPECT--
20bool(false)
21