frankenphp/testdata/flush.php
Kévin Dunglas e0cf262224
test: fix and refactor some flaky tests (#165)
* test: fix and refactor some flaky tests

* better fix for flush.php

* simpler DHA config
2023-07-10 18:46:04 +02:00

18 lines
281 B
PHP

<?php
require_once __DIR__.'/_executor.php';
return function () {
if (ini_get("output_buffering") !== "0") {
// Disable output buffering if not already done
while (@ob_end_flush());
}
echo 'He';
flush();
echo 'llo '.($_GET['i'] ?? '');
};