xref: /PHP-8.3/ext/opcache/tests/preload_011.phpt (revision d836046a)
1--TEST--
2Argument/return types must be available for preloading
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.preload={PWD}/preload_variance_ind.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
16interface K {}
17interface L extends K {}
18require __DIR__ . '/preload_variance.inc';
19
20$a = new A;
21$b = new B;
22$d = new D;
23$f = new F;
24$g = new G;
25
26?>
27--EXPECTF--
28Warning: Can't preload unlinked class H: Could not check compatibility between H::method($a): L and G::method($a): K, because class L is not available in %spreload_variance.inc on line 43
29