mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This is a quick fix for the problem. It'll work while all the JIT-ed functions have the same "fixed stack frame". Unwinder uses hard-coded unwind data for this "fixed stack frame". * Preallocate space for Win64 shadow args * typo * Setup unwinder for JIT functions * Revert "Dynamically xfail test case which fails on CI" This reverts commit7cc327fd5a. * Revert "Dynamically xfail test case which fails on CI" This reverts commitbdde797159. * Revert "Dynamically xfail test cases which fail on CI (GH-15710)" This reverts commit6d5962074f. * Remove XFAIL sections * Add hard-coded SEH unwind data for EXITCALL * Fix unwind data * Fix Windows multi-process support * Typo
25 lines
499 B
PHP
25 lines
499 B
PHP
--TEST--
|
|
GH-9407: LSP error in eval'd code refers to wrong class for static type
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
public function duplicate(): static {}
|
|
}
|
|
|
|
class C {
|
|
public static function generate() {
|
|
eval(<<<PHP
|
|
class B extends A {
|
|
public function duplicate(): A {}
|
|
}
|
|
PHP);
|
|
}
|
|
}
|
|
|
|
C::generate();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of B::duplicate(): A must be compatible with A::duplicate(): static in %s : eval()'d code on line %d
|