Skip to content

Commit 73c9c7e

Browse files
committed
Fix phpGH-12104 attempt
adding a bit of latency to give time to receive the data.
1 parent 04c9749 commit 73c9c7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/standard/tests/streams/bug74090.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ $data = base64_decode("1oIBAAABAAAAAAAAB2V4YW1wbGUDb3JnAAABAAE=");
2121
$fd = stream_socket_client("udp://localhost:$port", $errno, $errstr, 0, STREAM_CLIENT_CONNECT | STREAM_CLIENT_ASYNC_CONNECT);
2222
stream_set_blocking($fd, 0);
2323
stream_socket_sendto($fd, $data);
24+
sleep(1);
2425
stream_socket_recvfrom($server, 1, 0, $peer);
2526
stream_socket_sendto($server, $data, 0, $peer);
27+
sleep(1);
2628
$ret = stream_get_contents($fd, 65565);
2729
var_dump(strlen($ret) > 0);
2830
stream_socket_shutdown($fd, STREAM_SHUT_RDWR);

0 commit comments

Comments
 (0)