1--TEST-- 2Preloading class using trait with undefined class constant access 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.preload={PWD}/preload_undef_const_2.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(trait_exists('T')); 16var_dump(class_exists('Foo')); 17?> 18--EXPECTF-- 19Warning: Use of undefined constant UNDEF - assumed 'UNDEF' (this will throw an Error in a future version of PHP) in Unknown on line 0 20bool(true) 21bool(true) 22