com php-src: Ensure the test fails: sapi/cli/tests/bug70470.phpt
| From: | Anatol Belski | Date: | Tue, 17 Nov 2015 12:10:15 +0000 |
| Subject: | com php-src: Ensure the test fails: sapi/cli/tests/bug70470.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89923@lists.php.net to get a copy of this message | ||
Commit: cbc912d3ad908a89f7bd1bf349a80b576ee031c0
Author: Xinchen Hui <laruence@gmail.com> Wed, 11 Nov 2015 19:51:33 +0800
Committer: Anatol Belski <ab@php.net> Tue, 17 Nov 2015 13:10:15 +0100
Parents: 3c43ef2b16bf444273d03c87c8d6f1c84a1e0471
Branches: PHP-7.0.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cbc912d3ad908a89f7bd1bf349a80b576ee031c0
Log:
Ensure the test fails
Changed paths:
M sapi/cli/tests/bug70470.phpt
Diff:
diff --git a/sapi/cli/tests/bug70470.phpt b/sapi/cli/tests/bug70470.phpt
index c66f4c3...acd8c98 100644
--- a/sapi/cli/tests/bug70470.phpt
+++ b/sapi/cli/tests/bug70470.phpt
@@ -20,8 +20,12 @@ if (!$fp) {
fwrite($fp, "GET / HTTP/1.1\r\n");
fwrite($fp, "Host: " . PHP_CLI_SERVER_HOSTNAME . "\r\n");
fwrite($fp, "Content");
+fflush($fp);
+usleep(200000);
fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
fwrite($fp, "Connection: clo");
+fflush($fp);
+usleep(200000);
fwrite($fp, "se\r\n\r\n");
while (!feof($fp)) {
echo fgets($fp);