瀏覽代碼

Add test for #1046

bel2125 3 年之前
父節點
當前提交
1b7a69a094
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      test/flush.php

+ 11 - 0
test/flush.php

@@ -0,0 +1,11 @@
+<?php
+set_time_limit(20);
+header('Content-Type: text/plain; charset=utf-8');
+echo "CivetWeb Auto Flush Test\n";
+for($i = 0; $i <10; $i++) {
+	echo "Auto flush $i\n";
+	@ob_flush();@flush();
+	sleep(1);
+}
+echo "\nCurrently this test fails, only the first FLUSH is processed by the server.\n";
+?>