mirror of
https://github.com/dunglas/frankenphp.git
synced 2026-04-23 00:37:20 +08:00
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:
committed by
GitHub
parent
c1e30cd638
commit
1f484321a0
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
// verify ENV can be accessed during preload
|
||||
$_ENV['TEST'] = '123';
|
||||
function preloaded_function(): string
|
||||
{
|
||||
return 'I am preloaded';
|
||||
}
|
||||
Reference in New Issue
Block a user