1--TEST--
2Bug #79114 (Eval class during preload causes class to be only half available)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.preload={PWD}/preload.inc
8--SKIPIF--
9<?php
10require_once('skipif.inc');
11if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
12?>
13--FILE--
14<?php
15var_dump(class_exists(Foo::class));
16var_dump(class_exists(Bar::class));
17new Bar();
18var_dump(class_parents('Bar'));
19new Foo();
20f3();
21?>
22--EXPECT--
23bool(true)
24bool(true)
25array(1) {
26  ["Foo"]=>
27  string(3) "Foo"
28}
29