mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
9b0d76d585
wrapper when the file descriptor is a socket (inetd, etc) Fixes bug #43731
15 lines
189 B
PHP
15 lines
189 B
PHP
<?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);
|
|
|
|
?>
|