mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52: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.
13 lines
209 B
PHP
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';
|
|
}
|
|
};
|
|
|