mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-09-26 19:41:13 +08:00
13 lines
320 B
PHP
13 lines
320 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/../_executor.php';
|
|
|
|
// modify $_ENV in the global symbol table
|
|
// the modification should persist through the worker's lifetime
|
|
$_ENV['custom_key'] = 'custom_value';
|
|
|
|
return function () use (&$rememberedIndex) {
|
|
$custom_key = require __DIR__.'/import-env.php';
|
|
echo $custom_key;
|
|
};
|