Home
last modified time | relevance | path

Searched refs:server (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/PHP-5.4/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt2 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 Dfgets_socket_variation1.phpt10 /* 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 Dfgets_socket_variation2.phpt21 /* 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-5.4/ext/xmlrpc/libxmlrpc/
H A Dsystem_methods.c292 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 Dxmlrpc_introspection.c95 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-5.4/ext/sockets/tests/
H A Dipv4loop.phpt11 /* 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]');
16 if (!socket_bind($server, '127.0.0.1', 31337)) {
19 if (!socket_listen($server, 2)) {
29 die('Unable to connect to server socket');
33 $socket = socket_accept($server);
45 socket_close($server);
H A Dipv6loop.phpt12 /* 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]');
17 if (!socket_bind($server, '::1', 31337)) {
20 if (!socket_listen($server, 2)) {
30 die('Unable to connect to server socket');
34 $socket = socket_accept($server);
46 socket_close($server);
H A Dunixloop.phpt19 /* 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 Dsocket_getpeername_ipv4loop.phpt20 /* Setup socket server */
21 $server = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
22 if (!$server) {
23 die('Unable to create AF_INET socket [server]');
26 if (!socket_bind($server, $localhost, $port)) {
29 if (!socket_listen($server, 2)) {
39 die('Unable to connect to server socket');
43 $socket = socket_accept($server);
55 socket_close($server);
H A Dsocket_getpeername_ipv6loop.phpt21 /* Setup socket server */
22 $server = socket_create(AF_INET6, SOCK_STREAM, getprotobyname('tcp'));
23 if (!$server) {
24 die('Unable to create AF_INET6 socket [server]');
27 if (!socket_bind($server, $localhost, $port)) {
30 if (!socket_listen($server, 2)) {
40 die('Unable to connect to server socket');
44 $socket = socket_accept($server);
56 socket_close($server);
/PHP-5.4/ext/xmlrpc/tests/
H A Dbug50285.phpt24 $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 …]
H A Dbug45556.phpt10 $server = xmlrpc_server_create ();
21 xmlrpc_server_register_introspection_callback($server, 'foobar');
22 xmlrpc_server_register_introspection_callback($server, array('bar', 'test'));
23 xmlrpc_server_register_introspection_callback($server, array('foo', 'bar'));
26 xmlrpc_server_call_method ($server, $request, NULL, $options);
/PHP-5.4/ext/standard/tests/network/
H A Dudp4loop.phpt5 /* Setup socket server */
6 $server = stream_socket_server('udp://127.0.0.1:31338', $errno, $errstr, STREAM_SERVER_BIND);
7 if (!$server) {
8 die('Unable to create AF_INET socket [server]');
19 $data = fread($server, 10);
23 fclose($server);
H A Dtcp4loop.phpt8 /* 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 Dsocket_get_status_basic.phpt8 /* 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 Dudgloop.phpt14 /* 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 Dshutdown.phpt12 /* 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 Dtcp6loop.phpt16 /* 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 Dunixloop.phpt14 /* 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 Dudp6loop.phpt22 /* 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-5.4/ext/soap/interop/
H A Dindex.php9 $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-5.4/ext/pdo_mysql/
H A Dmysql_driver.c67 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()
150 H->server = NULL; in mysql_handle_closer()
213 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer()
275 while (mysql_more_results(H->server)) { in mysql_handle_doer()
276 if (mysql_next_result(H->server)) { in mysql_handle_doer()
279 result = mysql_store_result(H->server); in mysql_handle_doer()
492 if (mysql_ping(H->server)) {
497 mysql_stat(H->server);
[all …]
/PHP-5.4/ext/pdo_pgsql/
H A Dpgsql_driver.c180 self->conn = H->server; in pdo_pgsql_create_lob_stream()
198 if (H->server) { in pgsql_handle_closer()
199 PQfinish(H->server); in pgsql_handle_closer()
200 H->server = NULL; in pgsql_handle_closer()
290 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
403 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
437 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
462 PQreset(H->server); in pdo_pgsql_check_liveness()
474 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
930 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
[all …]
/PHP-5.4/
H A DREADME.TESTING24 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-5.4/sapi/cli/
H A Dphp_cli_server.c1732 client->server = server; in php_cli_server_client_ctor()
2043 if (server->router) { in php_cli_server_dispatch()
2057 if (server->router) { in php_cli_server_dispatch()
2088 if (server->host) { in php_cli_server_dtor()
2094 if (server->router) { in php_cli_server_dtor()
2172 server->host = host; in php_cli_server_ctor()
2173 server->port = port; in php_cli_server_ctor()
2198 server->router = NULL; in php_cli_server_ctor()
2287 php_cli_server *server = params->server; in php_cli_server_do_event_for_each_fd_callback() local
2341 server, in php_cli_server_do_event_for_each_fd()
[all …]

Completed in 36 milliseconds

12345678910>>...20