mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use another for bug51056.phpt
This port is already used by san_ipv6_peer_matching.phpt, wo we choose
another port which is not explicitly used in our test suite. The
proper solution would be to use ephemeral ports[1], but our OpenSSL
`ServerClientTestCase` does not support this yet.
[1] <6ab4e330ac>
Closes GH-16871.
This commit is contained in:
@@ -4,7 +4,7 @@ Bug #51056 (fread() on blocking stream will block even if data is available)
|
||||
<?php
|
||||
|
||||
$serverCode = <<<'CODE'
|
||||
$server = stream_socket_server('tcp://127.0.0.1:64324');
|
||||
$server = stream_socket_server('tcp://127.0.0.1:64327');
|
||||
phpt_notify();
|
||||
|
||||
$conn = stream_socket_accept($server);
|
||||
@@ -23,7 +23,7 @@ $clientCode = <<<'CODE'
|
||||
|
||||
phpt_wait();
|
||||
|
||||
$fp = fsockopen("tcp://127.0.0.1:64324");
|
||||
$fp = fsockopen("tcp://127.0.0.1:64327");
|
||||
|
||||
while (!feof($fp)) {
|
||||
$data = fread($fp, 256);
|
||||
|
||||
Reference in New Issue
Block a user