diff options
Diffstat (limited to 'sapi/cli/tests/022.inc')
-rw-r--r-- | sapi/cli/tests/022.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sapi/cli/tests/022.inc b/sapi/cli/tests/022.inc new file mode 100644 index 0000000000..b77512fcf3 --- /dev/null +++ b/sapi/cli/tests/022.inc @@ -0,0 +1,14 @@ +<?php + +ob_start(); +var_dump(STDIN); + +$fd = fopen("php://stdin","r"); +var_dump($fd); + +$client_socket = stream_socket_accept($fd); + +$data = ob_get_clean(); +fwrite($client_socket, $data); + +?> |