mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
fix: preserve autoloading in worker mode
This commit is contained in:
4
testdata/_executor.php
vendored
4
testdata/_executor.php
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user