mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
$_SERVER['FRANKENPHP_WORKER'] must not be NULL-terminated
This commit is contained in:
2
testdata/_executor.php
vendored
2
testdata/_executor.php
vendored
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
$fn = require $_SERVER['SCRIPT_FILENAME'];
|
||||
if (!isset($_SERVER['FRANKENPHP_WORKER'])) {
|
||||
if ('1' !== ($_SERVER['FRANKENPHP_WORKER'] ?? null)) {
|
||||
$fn();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user