mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
12 lines
225 B
PHP
12 lines
225 B
PHP
<?php
|
|
|
|
$numberOfRequests = 0;
|
|
$printNumberOfRequests = function () use (&$numberOfRequests) {
|
|
$numberOfRequests++;
|
|
echo "requests:$numberOfRequests";
|
|
};
|
|
|
|
while (frankenphp_handle_request($printNumberOfRequests)) {
|
|
|
|
}
|