/php-src/ext/soap/tests/bugs/ |
H A D | bug31695.phpt | 33 $client->Test("str"); 35 $client->Test("str"); 36 $client->__soapCall("Test", 41 $client->Test("str"); 42 $client->Test("str"); 43 $client->__setLocation($old); 44 $client->Test("str"); 46 $client->Test("str"); 47 $client->__setLocation($old); 48 $client->Test("str"); [all …]
|
H A D | bug73538.phpt | 8 $client = new SoapClient(null, [ 14 $client->__setSoapHeaders(new \SoapHeader('ns', 'Header', ['something' => 1])); 15 $client->__setSoapHeaders(new \SoapHeader('ns', 'Header', ['something' => 2])); 16 $client->test(); 17 echo $client->__getLastRequest(); 19 $client = new SoapClient(null, [ 25 $client->__setSoapHeaders([new \SoapHeader('ns', 'Header', ['something' => 1])]); 26 $client->__setSoapHeaders([new \SoapHeader('ns', 'Header', ['something' => 2])]); 27 $client->test(); 28 echo $client->__getLastRequest();
|
/php-src/sapi/cli/ |
H A D | php_cli_server.c | 521 if (!client) { in sapi_cli_server_ub_write() 531 if (!client) { in sapi_cli_server_flush() 1650 …client->request.query_string = perealloc(client->request.query_string, client->request.query_strin… in php_cli_server_client_read_request_on_query_string() 1653 client->request.query_string[client->request.query_string_len] = '\0'; in php_cli_server_client_read_request_on_query_string() 1805 …client->request.content = perealloc(client->request.content, client->request.content_len + length,… in php_cli_server_client_read_request_on_body() 1815 …php_cli_server_request_translate_vpath(client->server, &client->request, client->server->document_… in php_cli_server_client_read_request_on_message_complete() 1880 client->parser.data = client; in php_cli_server_client_read_request() 1961 client->addr = addr; in php_cli_server_client_ctor() 2153 …if (client->request.path_translated && strlen(client->request.path_translated) != client->request.… in php_cli_server_begin_send_static() 2664 if (client->file_fd >= 0 && !client->content_sender.buffer.first) { in php_cli_server_send_event() [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | fgets_socket_variation1.phpt | 18 $client = fsockopen("tcp://127.0.0.1:$port"); 20 if (!$client) { 31 echo "\n\nRead a line from the client:\n"; 32 var_dump(fgets($client)); 34 echo "\n\nRead another line from the client:\n"; 35 var_dump(fgets($client)); 40 while(!feof($client)) { 41 fread($client, 1); 51 Read a line from the client: 56 Read another line from the client: [all …]
|
H A D | fgets_socket_variation2.phpt | 29 $client = fsockopen("tcp://127.0.0.1:$port"); 31 if (!$client) { 45 echo "\nRead lines from the client\n"; 46 while ($line = fgets($client,256)) { 53 echo "\nClose the server side socket and read the remaining data from the client\n"; 55 while(!feof($client)) { 56 fread($client, 1); 66 Read lines from the client 68 Close the server side socket and read the remaining data from the client
|
/php-src/ext/openssl/tests/ |
H A D | tls_wrapper_with_tls_v1.3.phpt | 39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 40 var_dump($client); 42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 43 var_dump($client); 46 var_dump($client); 49 var_dump($client); 52 var_dump($client); 54 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 55 var_dump($client); 57 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); [all …]
|
H A D | tls_wrapper.phpt | 39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 40 var_dump($client); 42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 43 var_dump($client); 45 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 46 var_dump($client); 49 var_dump($client); 51 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 52 var_dump($client); 54 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); [all …]
|
H A D | tls_min_v1.0_max_v1.1_wrapper.phpt | 41 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 42 var_dump($client); 44 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 45 var_dump($client); 47 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 48 var_dump($client); 51 var_dump($client); 53 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 54 var_dump($client); 56 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); [all …]
|
H A D | tlsv1.0_wrapper.phpt | 39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 40 var_dump($client); 42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 43 var_dump($client); 45 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 46 var_dump($client);
|
H A D | tlsv1.1_wrapper.phpt | 39 $client = stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 40 var_dump($client); 42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 43 var_dump($client); 45 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 46 var_dump($client);
|
H A D | tlsv1.2_wrapper.phpt | 37 $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 38 var_dump($client); 40 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 41 var_dump($client); 43 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 44 var_dump($client);
|
H A D | tlsv1.3_wrapper.phpt | 37 $client = stream_socket_client("tlsv1.3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 38 var_dump($client); 40 $client = @stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 41 var_dump($client); 43 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); 44 var_dump($client);
|
/php-src/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_socket_variation1.phpt | 10 $client = fsockopen('tcp://127.0.0.1:31331'); 11 if (!$client) { 20 var_dump(stream_get_meta_data($client)); 23 fgets($client); 24 var_dump(stream_get_meta_data($client)); 27 fread($client, 3); 28 var_dump(stream_get_meta_data($client)); 33 while(!feof($client)) { 34 fread($client, 1); 36 var_dump(stream_get_meta_data($client)); [all …]
|
H A D | stream_get_meta_data_socket_variation4.phpt | 10 $client = fsockopen('tcp://127.0.0.1:31334'); 11 if (!$client) { 20 var_dump(stream_get_meta_data($client)); 22 echo "\n\nRead a line from the client:\n"; 23 fgets($client); 24 var_dump(stream_get_meta_data($client)); 29 while(!feof($client)) { 30 fread($client, 1); 32 var_dump(stream_get_meta_data($client)); 34 fclose($client); [all …]
|
H A D | stream_get_meta_data_socket_variation2.phpt | 10 $client = fsockopen('tcp://127.0.0.1:31332'); 11 if (!$client) { 18 var_dump(stream_get_meta_data($client)); 21 socket_set_timeout($client, 0, 1000); 22 fread($client, 1); 23 var_dump(stream_get_meta_data($client)); 27 var_dump(stream_get_meta_data($client)); 30 fread($client, 5); 31 var_dump(stream_get_meta_data($client)); 33 fclose($client); [all …]
|
H A D | stream_get_meta_data_socket_variation3.phpt | 10 $client = fsockopen('tcp://127.0.0.1:31333'); 11 if (!$client) { 18 var_dump(stream_get_meta_data($client)); 21 var_dump(socket_set_blocking($client, 0)); 22 var_dump(stream_get_meta_data($client)); 25 var_dump(socket_set_blocking($client, 1)); 26 var_dump(stream_get_meta_data($client)); 28 fclose($client);
|
/php-src/ext/soap/tests/SoapServer/ |
H A D | __getLastResponse.phpt | 31 $client->f(); 32 var_dump($client->__getLastResponse()); 33 var_dump($client->server->__getLastResponse()); 34 var_dump($client->__getLastResponse() === $client->server->__getLastResponse()); 39 var_dump($client->__getLastResponse()); 40 var_dump($client->server->__getLastResponse()); 41 var_dump($client->__getLastResponse() === $client->server->__getLastResponse()); 45 $client->f(); 46 echo $client->__getLastResponse(), "\n"; 47 echo $client->server->__getLastResponse(), "\n"; [all …]
|
/php-src/ext/standard/tests/network/ |
H A D | udp4loop.phpt | 16 $client = stream_socket_client($uri); 17 if (!$client) { 18 die('Unable to create AF_INET socket [client]'); 21 fwrite($client, "ABCdef123\n"); 26 fclose($client);
|
H A D | tcp4loop.phpt | 19 $client = stream_socket_client("tcp://127.0.0.1:$port"); 20 if (!$client) { 21 die('Unable to create AF_INET socket [client]'); 30 fwrite($client, "ABCdef123\n"); 35 fclose($client);
|
H A D | udgloop.phpt | 21 $client = stream_socket_client("udg:///tmp/$uniqid.sock"); 22 if (!$client) { 23 die('Unable to create AF_UNIX socket [client]'); 26 fwrite($client, "ABCdef123\n"); 31 fclose($client);
|
/php-src/ext/sockets/tests/ |
H A D | ipv4loop.phpt | 24 $client = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); 25 if (!$client) { 26 die('Unable to create AF_INET socket [client]'); 28 if (!socket_connect($client, '127.0.0.1', $port)) { 38 socket_write($client, "ABCdef123\n"); 43 socket_close($client);
|
H A D | ipv6loop.phpt | 32 $client = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP); 33 if (!$client) { 34 die('Unable to create AF_INET6 socket [client]'); 36 if (!socket_connect($client, '::1', $port)) { 46 socket_write($client, "ABCdef123\n"); 51 socket_close($client);
|
H A D | unixloop.phpt | 32 $client = socket_create(AF_UNIX, SOCK_STREAM, 0); 33 if (!$client) { 34 die('Unable to create AF_UNIX socket [client]'); 36 if (!socket_connect($client, $sock_path)) { 46 socket_write($client, "ABCdef123\n"); 51 socket_close($client);
|
H A D | socket_meminfo.phpt | 27 $client = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); 28 if (!$client) { 29 die('Unable to create AF_INET socket [client]'); 31 if (!socket_connect($client, '127.0.0.1', $port)) { 41 socket_write($client, "SO_MEMINFO\n"); 47 socket_close($client);
|
/php-src/ext/soap/tests/ |
H A D | setheaders.phpt | 9 $client->test(); 10 echo $client->__getLastRequest(); 12 $client->test(); 13 echo $client->__getLastRequest(); 14 $client->test(); 15 echo $client->__getLastRequest(); 16 $client->__setSoapHeaders(); 17 $client->test(); 18 echo $client->__getLastRequest(); 20 $client->test(); [all …]
|