/PHP-8.3/ext/standard/tests/streams/ |
H A D | stream_get_line_nb.phpt | 7 fclose($sockets[0]); 8 fclose($sockets[1]); 19 var_dump($sockets); 21 stream_set_blocking($sockets[1], 0); 25 fwrite($sockets[0], "line start"); 28 fwrite($sockets[0], ", line end"); 29 fwrite($sockets[0], ", $eol"); 34 fwrite($sockets[0], "incomplete line"); 41 fwrite($sockets[0], "end of file"); 44 fclose($sockets[0]); [all …]
|
H A D | stream_copy_to_stream_socket.phpt | 5 $sockets = @stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0); 6 if (!$sockets) die("skip stream_socket_pair"); 11 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0); 14 fwrite($sockets[0], "a"); 15 stream_socket_shutdown($sockets[0], STREAM_SHUT_WR); 16 stream_copy_to_stream($sockets[1], $tmp); 21 stream_copy_to_stream($sockets[1], $tmp);
|
H A D | stream_socket_pair.phpt | 6 $sockets = stream_socket_pair($domain, STREAM_SOCK_STREAM, 0); 7 var_dump($sockets); 8 fwrite($sockets[0], "foo"); 9 var_dump(fread($sockets[1], strlen("foo"))); 10 fclose($sockets[0]);
|
H A D | stream_get_contents_002.phpt | 9 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0); 11 stream_set_timeout($sockets[1], 6000); 13 fwrite($sockets[0], "foo"); 14 var_dump(stream_get_contents($sockets[1], 3));
|
H A D | bug60455_01.phpt | 7 //flag the first time. This is why we need to use sockets. 10 $sockets = stream_socket_pair($domain, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP) 12 fwrite($sockets[0], "a"); 13 stream_socket_shutdown($sockets[0], STREAM_SHUT_RDWR); 15 $f = $sockets[1];
|
H A D | eagain_is_not_an_error.phpt | 10 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); 11 stream_set_blocking($sockets[0], false); 12 var_dump(fread($sockets[0], 100));
|
/PHP-8.3/ext/sockets/ |
H A D | config.w32 | 3 ARG_ENABLE("sockets", "SOCKETS support", "no"); 6 if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS) 7 && CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS) 9 …EXTENSION('sockets', 'sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c', PHP_SOCK… 11 PHP_INSTALL_HEADERS("ext/sockets", "php_sockets.h windows_common.h"); 14 WARNING("sockets not enabled; libraries and headers not found");
|
H A D | config.m4 | 1 PHP_ARG_ENABLE([sockets], 2 [whether to enable sockets support], 3 [AS_HELP_STRING([--enable-sockets], 4 [Enable sockets support])]) 102 [sockets], 103 [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c], 106 PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
|
/PHP-8.3/ext/sockets/tests/ |
H A D | socket_select.phpt | 4 sockets 7 $sockets = array(); 13 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 17 $ref =& $sockets[0]; // bug #78038 18 var_dump(socket_select($sockets, $write, $except, 0));
|
H A D | socket_create_pair.phpt | 4 sockets 7 $sockets = array(); 13 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 14 var_dump($sockets);
|
H A D | socket_select-wrongparams-4.phpt | 6 sockets 9 $sockets = array(); 15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 21 var_dump(socket_select($sockets, $write, $except, $time, $usec));
|
H A D | socket_select-wrongparams-1-win32.phpt | 4 sockets 12 $sockets = array(); 14 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 19 var_dump(socket_select($sockets, $write, $except, $time));
|
H A D | socket_select-wrongparams-1.phpt | 4 sockets 12 $sockets = array(); 14 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 19 var_dump(socket_select($sockets, $write, $except, $time));
|
H A D | socket_create_pair-wrongparams-win32.phpt | 4 sockets 13 var_dump(socket_create_pair(AF_INET, 0, 0, $sockets)); 16 var_dump(socket_create_pair(31337, 0, 0, $sockets)); 22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
|
H A D | socket_select-wrongparams-2.phpt | 4 sockets 7 $sockets = null; 13 socket_select($sockets, $write, $except, $time);
|
H A D | socket_create_pair-wrongparams.phpt | 4 sockets 13 var_dump(socket_create_pair(AF_INET, 0, 0, $sockets)); 16 var_dump(socket_create_pair(31337, 0, 0, $sockets)); 22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
|
H A D | socket_set_nonblock.phpt | 2 ext/sockets - socket_set_block - basic test 7 sockets
|
H A D | socket_read_params.phpt | 2 ext/sockets - socket_read- test with incorrect parameter 7 sockets
|
H A D | socket_send_params.phpt | 2 ext/sockets - socket_send - test with incorrect parameters 4 sockets
|
H A D | socket_sendto_params.phpt | 2 ext/sockets - socket_sendto - test with incorrect parameters 4 sockets
|
H A D | socket_getsockname.phpt | 2 ext/sockets - socket_getsockname - basic test 7 sockets
|
H A D | bug80723.phpt | 2 Bug #80723: Different sockets compare as equal (regression in 8.0) 4 sockets
|
H A D | socket_strerror.phpt | 2 ext/sockets - socket_strerror - basic test 7 sockets
|
H A D | bug51958.phpt | 2 Bug #51958: socket_accept() fails on IPv6 server sockets 4 sockets
|
/PHP-8.3/ext/standard/tests/network/ |
H A D | fsockopen_variation2.phpt | 2 testing fsockopen() with udp sockets 16 echo "\nPass some data between the sockets:\n"; 26 echo "\nPass some data between the sockets:\n"; 40 Pass some data between the sockets: 46 Pass some data between the sockets:
|