mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 09:02:11 +01:00
Adds a test to reproduce #2254 and verify `opcache_preload` works as intended with the changes from https://github.com/php/frankenphp/pull/2252.
9 lines
146 B
PHP
9 lines
146 B
PHP
<?php
|
|
|
|
// verify ENV can be accessed during preload
|
|
$_ENV['TEST'] = '123';
|
|
function preloaded_function(): string
|
|
{
|
|
return 'I am preloaded';
|
|
}
|