Skip to content

Commit f72c7ed

Browse files
laruenceTyrael
authored andcommitted
Ensure the test fails
1 parent b22636c commit f72c7ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sapi/cli/tests/bug70470.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ if (!$fp) {
2020
fwrite($fp, "GET / HTTP/1.1\r\n");
2121
fwrite($fp, "Host: " . PHP_CLI_SERVER_HOSTNAME . "\r\n");
2222
fwrite($fp, "Content");
23+
fflush($fp);
24+
usleep(200000);
2325
fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
2426
fwrite($fp, "Connection: clo");
27+
fflush($fp);
28+
usleep(200000);
2529
fwrite($fp, "se\r\n\r\n");
2630
while (!feof($fp)) {
2731
echo fgets($fp);

0 commit comments

Comments
 (0)