Skip to content

Commit 934e60b

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Don't specify ports in socket_export_stream-4.phpt
2 parents 4c0ddd0 + a57905d commit 934e60b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/sockets/tests/socket_export_stream-4.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,34 @@ function test($stream, $sock) {
4242

4343
echo "normal\n";
4444
$sock0 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
45-
socket_bind($sock0, '0.0.0.0', 58380);
45+
socket_bind($sock0, '0.0.0.0');
4646
$stream0 = socket_export_stream($sock0);
4747
test($stream0, $sock0);
4848

4949
echo "\nunset stream\n";
5050
$sock1 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
51-
socket_bind($sock1, '0.0.0.0', 58381);
51+
socket_bind($sock1, '0.0.0.0');
5252
$stream1 = socket_export_stream($sock1);
5353
unset($stream1);
5454
test(null, $sock1);
5555

5656
echo "\nunset socket\n";
5757
$sock2 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
58-
socket_bind($sock2, '0.0.0.0', 58382);
58+
socket_bind($sock2, '0.0.0.0');
5959
$stream2 = socket_export_stream($sock2);
6060
unset($sock2);
6161
test($stream2, null);
6262

6363
echo "\nclose stream\n";
6464
$sock3 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
65-
socket_bind($sock3, '0.0.0.0', 58383);
65+
socket_bind($sock3, '0.0.0.0');
6666
$stream3 = socket_export_stream($sock3);
6767
fclose($stream3);
6868
test($stream3, $sock3);
6969

7070
echo "\nclose socket\n";
7171
$sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72-
socket_bind($sock4, '0.0.0.0', 58484);
72+
socket_bind($sock4, '0.0.0.0');
7373
$stream4 = socket_export_stream($sock4);
7474
socket_close($sock4);
7575
test($stream4, $sock4);

0 commit comments

Comments
 (0)