mirror of
https://github.com/php/php-src.git
synced 2026-04-18 13:31:27 +02:00
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.
17 lines
445 B
PHP
17 lines
445 B
PHP
--TEST--
|
|
Preloading: Loadable class checking (4)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_loadable_classes_4.inc
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
if (PHP_OS_FAMILY != 'Windows') die('skip Windows only');
|
|
?>
|
|
--FILE--
|
|
Unreachable
|
|
--EXPECTF--
|
|
Fatal error: Class Test uses internal class Exception during preloading, which is not supported on Windows in Unknown on line 0
|