fix: preserve autoloading in worker mode

This commit is contained in:
Kévin Dunglas
2022-10-06 12:37:12 +02:00
parent 4a87ad3609
commit 0b8e322375
6 changed files with 90 additions and 11 deletions

View File

@@ -3,9 +3,9 @@
$fn = require $_SERVER['SCRIPT_FILENAME'];
if (!isset($_SERVER['FRANKENPHP_WORKER'])) {
$fn();
return;
exit(0);
}
while (frankenphp_handle_request($fn)) {}
return;
exit(0);