mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01: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)) {
|
|
|
|
}
|