xref: /PHP-8.1/ext/opcache/tests/preload_006.phpt (revision d836046a)
1--TEST--
2Handling of errors during linking
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.preload={PWD}/preload_inheritance_error_ind.inc
8--EXTENSIONS--
9opcache
10--SKIPIF--
11<?php
12if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
13if (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
14?>
15--FILE--
16<?php
17echo "Foobar\n";
18?>
19--EXPECTF--
20Warning: Can't preload unlinked class B: Declaration of B::foo($bar) must be compatible with A::foo() in %spreload_inheritance_error.inc on line 8
21Foobar
22