/PHP-7.0/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], b"line start"); 28 fwrite($sockets[0], b", line end"); 29 fwrite($sockets[0], b", $eol"); 34 fwrite($sockets[0], b"incomplete line"); 41 fwrite($sockets[0], b"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], b"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], b"foo"); 9 var_dump(fread($sockets[1], strlen(b"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], b"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];
|
/PHP-7.0/ext/sockets/ |
H A D | config.w32 | 4 ARG_ENABLE("sockets", "SOCKETS support", "no"); 7 if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS) 8 && CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS) 10 …EXTENSION('sockets', 'sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c', PHP_SOCK… 12 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 | 5 PHP_ARG_ENABLE(sockets, whether to enable sockets support, 6 [ --enable-sockets Enable sockets support]) 59 …PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c], … 60 PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
|
H A D | php_sockets.h | 90 ZEND_BEGIN_MODULE_GLOBALS(sockets) 93 ZEND_END_MODULE_GLOBALS(sockets) 95 ZEND_EXTERN_MODULE_GLOBALS(sockets) 96 #define SOCKETS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sockets, v)
|
/PHP-7.0/ext/sockets/tests/ |
H A D | socket_create_pair.phpt | 5 if (!extension_loaded('sockets')) { 6 die('SKIP The sockets extension is not loaded.'); 10 $sockets = array(); 16 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 17 var_dump($sockets);
|
H A D | socket_select.phpt | 5 if (!extension_loaded('sockets')) { 6 die('SKIP The sockets extension is not loaded.'); 10 $sockets = array(); 16 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 20 var_dump(socket_select($sockets, $write, $except, 0));
|
H A D | socket_select-wrongparams-1-win32.phpt | 8 if (!extension_loaded('sockets')) { 9 die('SKIP The sockets extension is not loaded.'); 13 $sockets = array(); 15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 20 var_dump(socket_select($sockets, $write, $except, $time));
|
H A D | socket_select-wrongparams-4.phpt | 7 if (!extension_loaded('sockets')) { 8 die('SKIP The sockets extension is not loaded.'); 12 $sockets = array(); 18 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 24 var_dump(socket_select($sockets, $write, $except, $time, $usec));
|
H A D | socket_select-wrongparams-3.phpt | 7 if (!extension_loaded('sockets')) { 8 die('SKIP The sockets extension is not loaded.'); 12 $sockets = array(); 18 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 23 var_dump(socket_select($sockets, $write, $except, $time));
|
H A D | socket_select-wrongparams-1.phpt | 8 if (!extension_loaded('sockets')) { 9 die('SKIP The sockets extension is not loaded.'); 13 $sockets = array(); 15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 20 var_dump(socket_select($sockets, $write, $except, $time));
|
H A D | socket_select-wrongparams-2.phpt | 5 if (!extension_loaded('sockets')) { 6 die('SKIP The sockets extension is not loaded.'); 10 $sockets = null; 14 var_dump(socket_select($sockets, $write, $except, $time)); 15 socket_select($sockets, $write, $except);
|
H A D | socket_create_pair-wrongparams-win32.phpt | 8 if (!extension_loaded('sockets')) { 9 die('SKIP The sockets extension is not loaded.'); 16 var_dump(socket_create_pair($domain, SOCK_STREAM, 0, $sockets)); 18 var_dump(socket_create_pair(AF_INET, null, null, $sockets)); 20 var_dump(socket_create_pair(31337, null, null, $sockets)); 22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
|
H A D | socket_create_pair-wrongparams.phpt | 8 if (!extension_loaded('sockets')) { 9 die('SKIP The sockets extension is not loaded.'); 16 var_dump(socket_create_pair($domain, SOCK_STREAM, 0, $sockets)); 18 var_dump(socket_create_pair(AF_INET, null, null, $sockets)); 20 var_dump(socket_create_pair(31337, null, null, $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 8 if (!extension_loaded('sockets')) { 9 die('skip sockets extension not available.');
|
H A D | socket_close_params.phpt | 2 ext/sockets - socket_close - test with empty parameters 8 if (!extension_loaded('sockets')) { 9 die('skip - sockets extension not available.');
|
H A D | socket_listen_params.phpt | 2 ext/sockets - socket_listen - test with empty parameters 8 if (!extension_loaded('sockets')) { 9 die('skip sockets extension not available.');
|
H A D | socket_create_listen_params.phpt | 2 ext/sockets - socket_create_listen - test for empty parameters 8 if (!extension_loaded('sockets')) { 9 die('skip - sockets extension not available.');
|
H A D | bug51958.phpt | 2 Bug #51958: socket_accept() fails on IPv6 server sockets 5 if (!extension_loaded('sockets')) { 6 die('skip sockets extension not available.');
|
H A D | socket_getsockname.phpt | 2 ext/sockets - socket_getsockname - basic test 8 if (!extension_loaded('sockets')) { 9 die('skip sockets extension not available.');
|
H A D | socket_bind_params.phpt | 2 ext/sockets - socket_bind - test with empty parameters 8 if (!extension_loaded('sockets')) { 9 die('skip - sockets extension not available.');
|
/PHP-7.0/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:
|