/PHP-7.3/ext/standard/tests/file/ |
H A D | fread_socket_variation1.phpt | 2 Testing fread() on a TCP server socket 8 /* Setup socket server */ 9 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 10 if ($server) { 15 socket_set_timeout($server, 0, 1000); 17 var_dump(fread($server, 1)); 19 fclose($server);
|
H A D | fgets_socket_variation1.phpt | 10 /* Setup socket server */ 11 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 12 if ($server) { 25 $socket = stream_socket_accept($server); 37 echo "\n\nClose the server side socket and read the remaining data from the client\n"; 39 fclose($server); 61 Close the server side socket and read the remaining data from the client
|
H A D | fgets_socket_variation2.phpt | 21 /* Setup socket server */ 22 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 23 if ($server) { 36 $socket = stream_socket_accept($server); 53 echo "\nClose the server side socket and read the remaining data from the client\n"; 54 fclose($server); 68 Close the server side socket and read the remaining data from the client
|
/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | system_methods.c | 292 static XMLRPC_VALUE xsm_system_multicall_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* userD… 299 static void xsm_lazy_doc_methods_cb(XMLRPC_SERVER server, void* userData) { in xsm_lazy_doc_methods_cb() argument 301 XMLRPC_ServerAddIntrospectionData(server, xDesc); in xsm_lazy_doc_methods_cb() 305 void xsm_register(XMLRPC_SERVER server) { in xsm_register() argument 306 xi_register_system_methods(server); in xsm_register() 308 XMLRPC_ServerRegisterMethod(server, xsm_token_system_multicall, xsm_system_multicall_cb); in xsm_register() 309 …XMLRPC_ServerRegisterMethod(server, xsm_token_system_get_capabilities, xsm_system_get_capabilities… in xsm_register() 312 XMLRPC_ServerRegisterIntrospectionCallback(server, xsm_lazy_doc_methods_cb); in xsm_register() 315 XMLRPC_VALUE xsm_system_multicall_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* userData) { in xsm_system_multicall_cb() argument 335 XMLRPC_ServerCallMethod(server, request, userData)); in xsm_system_multicall_cb() [all …]
|
H A D | xmlrpc_introspection.c | 92 if(server) { in check_docs_loaded() 93 q_iter qi = Q_Iter_Head_F(&server->docslist); in check_docs_loaded() 97 dm->method(server, userData); in check_docs_loaded() 127 check_docs_loaded(server, userData); in xi_system_describe_methods_cb() 173 q_iter qi = Q_Iter_Head_F(&server->methodlist); in xi_system_list_methods_cb() 192 check_docs_loaded(server, userData); in xi_system_method_signature_cb() 251 check_docs_loaded(server, userData); in xi_system_method_help_cb() 499 if(server && desc) { in XMLRPC_ServerAddIntrospectionData() 524 if(!server->xIntrospection) { in XMLRPC_ServerAddIntrospectionData() 576 if(server && cb) { in XMLRPC_ServerRegisterIntrospectionCallback() [all …]
|
/PHP-7.3/ext/standard/tests/network/ |
H A D | udp4loop.phpt | 5 /* Setup socket server */ 8 $server = @stream_socket_server($uri, $errno, $errstr, STREAM_SERVER_BIND); 9 if ($server) break; 11 if (!$server) { 12 die('Unable to create AF_INET socket [server]: ' . $errstr); 23 $data = fread($server, 10); 27 fclose($server);
|
H A D | tcp4loop.phpt | 8 /* Setup socket server */ 9 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 10 if ($server) { 14 if (!$server) { 15 die('Unable to create AF_INET socket [server]'); 25 $socket = stream_socket_accept($server); 37 fclose($server);
|
H A D | socket_get_status_basic.phpt | 8 /* Setup socket server */ 9 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 10 if ($server) { 15 var_dump(socket_get_status($server)); 16 fclose($server);
|
H A D | udgloop.phpt | 14 /* Setup socket server */ 15 $server = stream_socket_server("udg:///tmp/$uniqid.sock", $errno, $errstr, STREAM_SERVER_BIND); 16 if (!$server) { 17 die('Unable to create AF_UNIX socket [server]'); 28 $data = fread($server, 10); 32 fclose($server);
|
H A D | shutdown.phpt | 12 /* Setup socket server */ 13 $server = @stream_socket_server("tcp://127.0.0.1:$port"); 14 if ($server) { 19 if (!$server) { 20 die('Unable to create AF_INET socket [server]'); 42 $socket = stream_socket_accept($server); 55 $socket = stream_socket_accept($server); 69 fclose($server);
|
H A D | tcp6loop.phpt | 16 /* Setup socket server */ 17 $server = @stream_socket_server("tcp://[::1]:$port"); 18 if ($server) { 23 if (!$server) { 24 die('Unable to create AF_INET6 socket [server]'); 34 $socket = stream_socket_accept($server); 46 fclose($server);
|
H A D | unixloop.phpt | 14 /* Setup socket server */ 15 $server = stream_socket_server("unix:///tmp/$uniqid.sock"); 16 if (!$server) { 17 die('Unable to create AF_UNIX socket [server]'); 27 $socket = stream_socket_accept($server); 39 fclose($server);
|
H A D | udp6loop.phpt | 22 /* Setup socket server */ 23 $server = @stream_socket_server("udp://[::1]:$port", $errno, $errstr, STREAM_SERVER_BIND); 24 if ($server) { 29 if (!$server) { 30 die('Unable to create AF_INET6 socket [server]'); 41 $data = fread($server, 10); 45 fclose($server);
|
/PHP-7.3/ext/sockets/tests/ |
H A D | ipv4loop.phpt | 11 /* Setup socket server */ 12 $server = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); 13 if (!$server) { 14 die('Unable to create AF_INET socket [server]'); 18 if (socket_bind($server, '127.0.0.1', $port)) { 26 if (!socket_listen($server, 2)) { 36 die('Unable to connect to server socket'); 40 $socket = socket_accept($server); 52 socket_close($server);
|
H A D | ipv6loop.phpt | 12 /* Setup socket server */ 13 $server = socket_create(AF_INET6, SOCK_STREAM, getprotobyname('tcp')); 14 if (!$server) { 15 die('Unable to create AF_INET6 socket [server]'); 19 if (socket_bind($server, '::1', $port)) { 27 if (!socket_listen($server, 2)) { 37 die('Unable to connect to server socket'); 41 $socket = socket_accept($server); 53 socket_close($server);
|
H A D | unixloop.phpt | 19 /* Setup socket server */ 20 $server = socket_create(AF_UNIX, SOCK_STREAM, 0); 21 if (!$server) { 22 die('Unable to create AF_UNIX socket [server]'); 24 if (!socket_bind($server, $sock_path)) { 27 if (!socket_listen($server, 2)) { 37 die('Unable to connect to server socket'); 41 $socket = socket_accept($server); 53 socket_close($server);
|
H A D | socket_getpeername_ipv4loop.phpt | 17 /* Setup socket server */ 18 $server = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); 19 if (!$server) { 20 die('Unable to create AF_INET socket [server]'); 27 if (socket_bind($server, $localhost, $port)) { 35 if (!socket_listen($server, 2)) { 45 die('Unable to connect to server socket'); 49 $socket = socket_accept($server); 61 socket_close($server);
|
H A D | socket_getpeername_ipv6loop.phpt | 18 /* Setup socket server */ 19 $server = socket_create(AF_INET6, SOCK_STREAM, getprotobyname('tcp')); 20 if (!$server) { 21 die('Unable to create AF_INET6 socket [server]'); 28 if (socket_bind($server, $localhost, $port)) { 36 if (!socket_listen($server, 2)) { 46 die('Unable to connect to server socket'); 50 $socket = socket_accept($server); 62 socket_close($server);
|
/PHP-7.3/ext/xmlrpc/tests/ |
H A D | bug50285.phpt | 24 $server = xmlrpc_server_create(); 25 $result = xmlrpc_server_register_method($server, 'test1', 'test1'); 33 $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); 38 $server = xmlrpc_server_create(); 39 $result = xmlrpc_server_register_method($server, 'test2', 'test2'); 47 $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); 52 $server = xmlrpc_server_create(); 53 $result = xmlrpc_server_register_method($server, 'test3', 'test3'); 61 $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); 66 $server = xmlrpc_server_create(); [all …]
|
/PHP-7.3/ext/soap/interop/ |
H A D | index.php | 9 $server = $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT']; variable 10 $base = (isset($_SERVER['HTTPS'])?"https://":"http://").$server.dirname($_SERVER['PHP_SELF'])."/int… 11 $groupb = (isset($_SERVER['HTTPS'])?"https://":"http://").$server.dirname($_SERVER['PHP_SELF'])."/i… 12 $groupc = (isset($_SERVER['HTTPS'])?"https://":"http://").$server.dirname($_SERVER['PHP_SELF'])."/e…
|
/PHP-7.3/ext/standard/tests/streams/ |
H A D | bug76136.phpt | 12 $server = stream_socket_server("tcp://[::1]:1337/"); 13 echo stream_socket_get_name($server, false).PHP_EOL; 14 $server = stream_socket_server("tcp://127.0.0.1:1337/"); 15 echo stream_socket_get_name($server, false);
|
H A D | stream_context_tcp_nodelay_server.phpt | 2 stream context tcp_nodelay server 14 $server = stream_socket_server( 17 $client = stream_socket_accept($server); 20 socket_import_stream($server), 28 fclose($server);
|
/PHP-7.3/ext/pdo_mysql/ |
H A D | mysql_driver.c | 65 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error() 145 if (H->server) { in mysql_handle_closer() 146 mysql_close(H->server); in mysql_handle_closer() 208 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer() 270 while (mysql_more_results(H->server)) { in mysql_handle_doer() 271 if (mysql_next_result(H->server)) { in mysql_handle_doer() 515 if (mysql_ping(H->server)) { 530 if (H->server) { 531 mysqlnd_end_psession(H->server); 619 mysqlnd_restart_psession(H->server); [all …]
|
/PHP-7.3/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 195 self->conn = H->server; in pdo_pgsql_create_lob_stream() 213 if (H->server) { in pgsql_handle_closer() 214 PQfinish(H->server); in pgsql_handle_closer() 215 H->server = NULL; in pgsql_handle_closer() 420 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute() 481 if (!PQconsumeInput(H->server) || PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness() 482 PQreset(H->server); in pdo_pgsql_check_liveness() 503 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd() 1073 if (!PQconsumeInput(H->server)) { in PHP_METHOD() 1083 if (!PQconsumeInput(H->server)) { in PHP_METHOD() [all …]
|
/PHP-7.3/ext/standard/tests/http/ |
H A D | server.inc | 13 $server = stream_socket_server($socket_string, $errno, $errstr); 14 if (!$server) { 32 return $server; 35 /* Minimal HTTP server with predefined responses. 43 if (!is_resource($server = http_server_init($socket_string, $output))) { 44 return $server; 49 $sock = stream_socket_accept($server); 97 if (!is_resource($server = http_server_init($socket_string, $output))) { 98 return $server; 101 $sock = stream_socket_accept($server);
|