<?php stream_socket_shutdown(resource $stream, int $mode): bool
<?php @\stream_socket_shutdown($this->stream, \STREAM_SHUT_RDWR); \stream_set_blocking($this->stream, false); }
<?php { $client = stream_socket_client('tcp://localhost:' . $this->port); fwrite($client, "foo\n"); stream_socket_shutdown($client, STREAM_SHUT_WR); $mock = $this->expectCallableOnceWith("foo\n");
<?php { $client = stream_socket_client($this->uds); fwrite($client, "foo\n"); stream_socket_shutdown($client, STREAM_SHUT_WR); $mock = $this->expectCallableOnceWith("foo\n");
<?php return true; } if (!$socketIsFresh) { stream_socket_shutdown($this->socket, \STREAM_SHUT_RDWR); fclose($this->socket); $this->socket = $this->createSocket(); }