Files
frankenphp/testdata/worker-restart.php
2025-05-01 02:05:23 +02:00

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);