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--EXTENSIONS-- 9opcache 10--SKIPIF-- 11<?php 12if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows'); 13?> 14--FILE-- 15<?php 16var_dump(class_exists(Foo::class)); 17var_dump(class_exists(Bar::class)); 18new Bar(); 19var_dump(class_parents('Bar')); 20new Foo(); 21f3(); 22?> 23--EXPECT-- 24bool(true) 25bool(true) 26array(1) { 27 ["Foo"]=> 28 string(3) "Foo" 29} 30