tests: opcache_preload (#2257)

Adds a test to reproduce #2254 and verify `opcache_preload` works as
intended with the changes from
https://github.com/php/frankenphp/pull/2252.
This commit is contained in:
Alexander Stecher
2026-03-09 15:54:36 +01:00
committed by GitHub
parent c1e30cd638
commit 1f484321a0
3 changed files with 48 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
// verify ENV can be accessed during preload
$_ENV['TEST'] = '123';
function preloaded_function(): string
{
return 'I am preloaded';
}