php-src/ext/opcache/tests/preload_dynamic_function.inc
Nikita Popov e0d6c3f7ba Fix dynamic function definition in preload script
We should use normal function renaming if the function is declared
during preloading itself, rather than afterwards.

This fixes a regression introduced by
68f80be9d1.
2020-11-04 10:54:08 +01:00

4 lines
37 B
PHP

<?php
if (1) {
function f() {}
}