From: Xinchen Hui Date: Wed, 11 Nov 2015 11:51:33 +0000 (+0800) Subject: Ensure the test fails X-Git-Tag: php-5.6.17RC1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f72c7edfa4b7212a7b9583bf2f66f3b5e72b8602;p=php Ensure the test fails --- diff --git a/sapi/cli/tests/bug70470.phpt b/sapi/cli/tests/bug70470.phpt index c66f4c3065..acd8c98f05 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);