Skip to content

Commit 3becfb9

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
2 parents ccc35d1 + 0c8ad36 commit 3becfb9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ext/openssl/tests/bug72333.phpt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ $serverCode = <<<'CODE'
1414
$fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
1515
phpt_notify();
1616
$conn = stream_socket_accept($fp);
17-
18-
for ($i = 0; $i < 5; $i++) {
19-
fread($conn, 100000);
20-
usleep(20000);
21-
}
17+
fread($conn, 100000);
18+
phpt_wait();
2219
CODE;
2320

2421
$clientCode = <<<'CODE'
@@ -40,9 +37,9 @@ $clientCode = <<<'CODE'
4037
$buf = substr($buf, $total);
4138
}
4239
}
43-
44-
$str1 = str_repeat("a", 5000000);
40+
$str1 = str_repeat("a", 3000000);
4541
blocking_fwrite($fp, $str1);
42+
phpt_notify();
4643
echo "done";
4744
CODE;
4845

0 commit comments

Comments
 (0)