xref: /PHP-7.0/sapi/cli/tests/022.inc (revision 9b0d76d5)
1<?php
2
3ob_start();
4var_dump(STDIN);
5
6$fd = fopen("php://stdin","r");
7var_dump($fd);
8
9$client_socket = stream_socket_accept($fd);
10
11$data = ob_get_clean();
12fwrite($client_socket, $data);
13
14?>
15