worker-with-watcher.php 225 B

1234567891011
  1. <?php
  2. $numberOfRequests = 0;
  3. $printNumberOfRequests = function () use (&$numberOfRequests) {
  4. $numberOfRequests++;
  5. echo "requests:$numberOfRequests";
  6. };
  7. while (frankenphp_handle_request($printNumberOfRequests)) {
  8. }