diff options
Diffstat (limited to 'ext/opcache/tests/bug78014.phpt')
-rw-r--r-- | ext/opcache/tests/bug78014.phpt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ext/opcache/tests/bug78014.phpt b/ext/opcache/tests/bug78014.phpt index 3b4d332828..63fc1b6db1 100644 --- a/ext/opcache/tests/bug78014.phpt +++ b/ext/opcache/tests/bug78014.phpt @@ -12,18 +12,8 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows ?> --FILE-- <?php -class B extends A { - function foo(): int { return 24; } -} $c = new C; var_dump($c->foo()); ?> ---EXPECTF-- -Warning: Can't preload unlinked class C: Parent with unresolved initializers B in %s on line %d - -Warning: Can't preload class B with unresolved initializer for constant X in %s on line %d - -Fatal error: Uncaught Error: Class "C" not found in %sbug78014.php:5 -Stack trace: -#0 {main} - thrown in %sbug78014.php on line 5 +--EXPECT-- +int(42) |