summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt')
-rw-r--r--ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt b/ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt
index 689421011e..0720b319b7 100644
--- a/ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt
+++ b/ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt
@@ -16,7 +16,6 @@ if (!extension_loaded('sockets')) {
}
$address = '127.0.0.1';
- socket_sendto($socket, '', 1, 0, $address); // cause warning
if (!socket_bind($socket, $address, 1223)) {
die("Unable to bind to $address:1223");
}
@@ -34,8 +33,6 @@ if (!extension_loaded('sockets')) {
$from = "";
$port = 0;
- socket_recvfrom($socket, $buf, 12, 0); // cause warning
- socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
$bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
if ($bytes_received == -1) {
die('An error occurred while receiving from the socket');
@@ -45,13 +42,8 @@ if (!extension_loaded('sockets')) {
echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
socket_close($socket);
---EXPECTF--
-Warning: Wrong parameter count for socket_sendto() in %s on line %d
+--EXPECT--
bool(false)
-
-Warning: socket_recvfrom() expects at least 5 parameters, 4 given in %s on line %d
-
-Warning: Wrong parameter count for socket_recvfrom() in %s on line %d
Received Ping! from remote address 127.0.0.1 and remote port 1223
--CREDITS--
Falko Menge <mail at falko-menge dot de>