php-src/ext/opcache/tests/preload_loadable_classes_2.inc
Nikita Popov 3f86adb0ef Fixed bug #78935: Check that all linked classes can be preloaded
During preloading, check that all classes that have been included
as part of the preload script itself (rather than through opcache_compile_file)
can actually be preloaded, i.e. satisfy Windows restrictions, have
resolved initializers and resolved property types. When resolving
initializers and property types, also autoload additional classes.
Because of this, the resolution runs in a loop.
2019-12-10 13:05:48 +01:00

7 lines
69 B
PHP

<?php
class Test {
const X = UNDEF;
const Y = Foo::UNDEF;
}