mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
18 lines
303 B
PHP
18 lines
303 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/../_executor.php';
|
|
|
|
return function () use (&$rememberedKey) {
|
|
$key = $_GET['key'];
|
|
$put = $_GET['put'] ?? null;
|
|
|
|
if(isset($put)){
|
|
putenv("$key=$put");
|
|
}
|
|
|
|
$get = getenv($key);
|
|
$asStr = $get === false ? '' : $get;
|
|
|
|
echo "$key=$asStr";
|
|
};
|