mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
14 lines
266 B
PHP
14 lines
266 B
PHP
<?php
|
|
|
|
$fn = static function () {
|
|
echo sprintf("Counter (%s)", $_GET['i'] ?? 'i not set');
|
|
};
|
|
|
|
$loopMax = $_SERVER['EVERY'] ?? 10;
|
|
$loops = 0;
|
|
do {
|
|
$ret = \frankenphp_handle_request($fn);
|
|
} while ($ret && (-1 === $loopMax || ++$loops < $loopMax));
|
|
|
|
exit(0);
|