connectionStatusLog.php 322 B

1234567891011121314151617
  1. <?php
  2. ignore_user_abort(true);
  3. require_once __DIR__.'/_executor.php';
  4. return function () {
  5. if(isset($_GET['finish'])) {
  6. frankenphp_finish_request();
  7. }
  8. echo 'hi';
  9. if(isset($_GET['flush'])) {
  10. flush();
  11. }
  12. $status = (string) connection_status();
  13. error_log("request {$_GET['i']}: " . $status);
  14. };