Files
archived-frankenphp/testdata/preload-check.php
Alexander Stecher 1f484321a0 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.
2026-03-09 15:54:36 +01:00

13 lines
209 B
PHP

<?php
require_once __DIR__.'/_executor.php';
return function () {
if (function_exists('preloaded_function')) {
echo preloaded_function();
} else {
echo 'not preloaded';
}
};