summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-26 16:58:37 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-26 16:58:37 +0200
commit7d28a24c6602a0cf66def582c82712408254f81d (patch)
treec8971c95190bff22168ccffecf3e42d11c0d7393 /ext/standard/tests/streams
parent4366f22dfcadfa080862c3fcbac8e0e42f05bf62 (diff)
downloadphp-git-7d28a24c6602a0cf66def582c82712408254f81d.tar.gz
Remove stream_socket_sendto.phpt
Fails for me locally due to different number of warnings with different messages. Rather than adding more wildcards I'm dropping this test entirely, as it doesn't seem to test anything particularly useful. (cherry picked from commit 84333cad674890174c47f3c21b1b1cf85a4276ac)
Diffstat (limited to 'ext/standard/tests/streams')
-rw-r--r--ext/standard/tests/streams/stream_socket_sendto.phpt58
1 files changed, 0 insertions, 58 deletions
diff --git a/ext/standard/tests/streams/stream_socket_sendto.phpt b/ext/standard/tests/streams/stream_socket_sendto.phpt
deleted file mode 100644
index 62d9f6ef80..0000000000
--- a/ext/standard/tests/streams/stream_socket_sendto.phpt
+++ /dev/null
@@ -1,58 +0,0 @@
---TEST--
-int stream_socket_sendto ( resource $socket , string $data [, int $flags = 0 [, string $address ]] );
---CREDITS--
-marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
---SKIPIF--
-<?php
-if (getenv("SKIP_ONLINE_TESTS")) { die('skip: online test'); }
-?>
---FILE--
-<?php
-$serverUri = "tcp://127.0.0.1:31854";
-$serverUrl = "http://php.net";
-$stringSocket = "out of band data.";
-$stringFWrite = "normal data to transmit";
-$sock = stream_socket_server($serverUri, $errno, $errstr);
-
-if (is_resource($sock)) {
- fwrite($sock, $stringFWrite);
- var_dump(stream_socket_sendto());
- var_dump(stream_socket_sendto($sock));
- var_dump(stream_socket_sendto($sock, $stringSocket));
- var_dump(stream_socket_sendto($sock, $stringSocket, STREAM_OOB));
- var_dump(stream_socket_sendto($sock, $stringSocket, STREAM_OOB, $serverUri));
- var_dump(stream_socket_sendto($sock, $stringSocket, STREAM_OOB, $serverUrl));
-} else {
- die("Test stream_socket_enable_crypto has failed; Unable to connect: {$errstr} ({$errno})");
-}
-?>
---EXPECTF--
-Notice: fwrite(): send of %i bytes failed with errno=%i Broken pipe in %s on line %i
-
-Warning: stream_socket_sendto() expects at least %i parameters, %i given in %s on line %i
-bool(%s)
-
-Warning: stream_socket_sendto() expects at least %i parameters, %i given in %s on line %i
-bool(%s)
-
-Warning: stream_socket_sendto(): Broken pipe
- in %s on line %i
-int(%i)
-
-Warning: stream_socket_sendto(): Broken pipe
- in %s on line %i
-int(%i)
-
-Warning: stream_socket_sendto(): php_network_getaddresses: getaddrinfo failed: Name or service not known in %s on line %i
-
-Warning: stream_socket_sendto(): Failed to resolve %s: php_network_getaddresses: getaddrinfo failed: Name or service not known in %s on line %i
-
-Warning: stream_socket_sendto(): Failed to parse %s into a valid network address in %s on line %i
-bool(%s)
-
-Warning: stream_socket_sendto(): php_network_getaddresses: getaddrinfo failed: Name or service not known in %s on line %i
-
-Warning: stream_socket_sendto(): Failed to resolve %s: php_network_getaddresses: getaddrinfo failed: Name or service not known in %s on line %i
-
-Warning: stream_socket_sendto(): Failed to parse %s into a valid network address in %s on line %i
-bool(%s)