summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-11-03 14:49:10 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-11-03 14:49:10 +0100
commit7e5531755812a46841fc24ade5f71aefde69cf96 (patch)
tree326ac7ef23d33dbac0eec634b9556436729678b4 /ext
parentee934f8245b58e1a557ed7b3f303f2d9d7cd23a6 (diff)
downloadphp-git-7e5531755812a46841fc24ade5f71aefde69cf96.tar.gz
Allow unlinked classes when performing in_compilation variance check
As preloading runs in in_compilation mode, we also need to allow use of unlinked classes in lookup_class().
Diffstat (limited to 'ext')
-rw-r--r--ext/opcache/tests/preload_variance.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload_variance.inc b/ext/opcache/tests/preload_variance.inc
index eae3cd7152..85e569f345 100644
--- a/ext/opcache/tests/preload_variance.inc
+++ b/ext/opcache/tests/preload_variance.inc
@@ -14,11 +14,13 @@ class C extends Z {
public function method($a): self {}
public function method2($a): C {}
public function method3($a): object {}
+ public function method4(D $a) {}
}
class D extends C {
public function method($a): self {}
public function method2($a): D {}
public function method3($a): stdClass {}
+ public function method4(C $a) {}
}
// Works.