mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
12 lines
184 B
PHP
12 lines
184 B
PHP
<?php
|
|
|
|
$fn = require $_SERVER['SCRIPT_FILENAME'];
|
|
if ('1' !== ($_SERVER['FRANKENPHP_WORKER'] ?? null)) {
|
|
$fn();
|
|
exit(0);
|
|
}
|
|
|
|
while (frankenphp_handle_request($fn)) {}
|
|
|
|
exit(0);
|