소스 검색

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";
+?>