/PHP-7.0/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.0/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 | 95 if(server) { in check_docs_loaded() 96 q_iter qi = Q_Iter_Head_F(&server->docslist); in check_docs_loaded() 100 dm->method(server, userData); in check_docs_loaded() 130 check_docs_loaded(server, userData); in xi_system_describe_methods_cb() 176 q_iter qi = Q_Iter_Head_F(&server->methodlist); in xi_system_list_methods_cb() 195 check_docs_loaded(server, userData); in xi_system_method_signature_cb() 254 check_docs_loaded(server, userData); in xi_system_method_help_cb() 502 if(server && desc) { in XMLRPC_ServerAddIntrospectionData() 527 if(!server->xIntrospection) { in XMLRPC_ServerAddIntrospectionData() 579 if(server && cb) { in XMLRPC_ServerRegisterIntrospectionCallback() [all …]
|
/PHP-7.0/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.0/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.0/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.0/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.0/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 202 self->conn = H->server; in pdo_pgsql_create_lob_stream() 220 if (H->server) { in pgsql_handle_closer() 221 PQfinish(H->server); in pgsql_handle_closer() 222 H->server = NULL; in pgsql_handle_closer() 441 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute() 475 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute() 503 PQreset(H->server); in pdo_pgsql_check_liveness() 524 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd() 1094 PQconsumeInput(H->server); in PHP_METHOD() 1100 PQconsumeInput(H->server); in PHP_METHOD() [all …]
|
/PHP-7.0/ext/pdo_mysql/ |
H A D | mysql_driver.c | 67 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error() 148 if (H->server) { in mysql_handle_closer() 149 mysql_close(H->server); in mysql_handle_closer() 211 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer() 273 while (mysql_more_results(H->server)) { in mysql_handle_doer() 274 if (mysql_next_result(H->server)) { in mysql_handle_doer() 277 result = mysql_store_result(H->server); in mysql_handle_doer() 493 if (mysql_ping(H->server)) { 498 mysql_stat(H->server); 499 switch (mysql_errno(H->server)) { [all …]
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli_server.c | 1838 client->server = server; in php_cli_server_client_ctor() 2154 if (server->router) { in php_cli_server_dispatch() 2171 if (server->router) { in php_cli_server_dispatch() 2217 if (server->host) { in php_cli_server_dtor() 2223 if (server->router) { in php_cli_server_dtor() 2305 server->host = host; in php_cli_server_ctor() 2306 server->port = port; in php_cli_server_ctor() 2341 server->router = NULL; in php_cli_server_ctor() 2435 php_cli_server *server = params->server; in php_cli_server_do_event_for_each_fd_callback() local 2486 server, in php_cli_server_do_event_for_each_fd() [all …]
|
/PHP-7.0/ |
H A D | README.TESTING2 | 4 specific to server-tests.php. 6 server-tests.php is backward compatible with tests developed for 21 see server-tests-config.php for details. 28 must be copied to a directory under the web server 42 php server-tests.php -p /path/to/php-cli 45 php server-tests.php -p /path/to/php-cgi 51 php server-tests.php -w -u http://localhost/test 54 php server-tests.php -c /path/to/server-tests-config.php 58 php server-tests.php -c /path/to/server-tests-config.php -w -t 3 -d /path/to/testdir 66 under server-tests. [all …]
|
/PHP-7.0/ext/soap/tests/interop/Round3/GroupD/ |
H A D | round3_groupD_compound2.inc | 9 $server = new SoapServer(dirname(__FILE__)."/round3_groupD_compound2.wsdl"); 10 $server->setClass("SOAP_Interop_GroupD"); 11 $server->handle($HTTP_RAW_POST_DATA);
|