]> granicus.if.org Git - php/commitdiff
Ensure the test fails
authorXinchen Hui <laruence@gmail.com>
Wed, 11 Nov 2015 11:51:33 +0000 (19:51 +0800)
committerFerenc Kovacs <tyrael@php.net>
Wed, 11 Nov 2015 13:55:33 +0000 (14:55 +0100)
sapi/cli/tests/bug70470.phpt

index c66f4c3065729f51a75852d28ca60d07b340f115..acd8c98f05a69b340afdcfa9b17b3ab5f77d38ca 100644 (file)
@@ -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);