We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d1716 commit 92cc345Copy full SHA for 92cc345
Zend/tests/bug76451.inc
@@ -0,0 +1,4 @@
1
+<?php
2
+
3
+class Foo {}
4
+class_alias('Foo', 'Bar');
Zend/tests/bug76451.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Aliases during inheritance type checks affected by opcache
+--INI--
+opcache.enable=1
5
+opcache.enable_cli=1
6
+opcache.optimization_level=-1
7
+--SKIPIF--
8
+<?php if (!extension_loaded('Zend OPcache') || php_sapi_name() != "cli") die("skip CLI only"); ?>
9
+--FILE--
10
11
+require __DIR__ . "/bug76451.inc";
12
13
+class A {
14
+ public function test(Foo $foo) {}
15
+}
16
+class B extends A {
17
+ public function test(Bar $foo) {}
18
19
+?>
20
+--EXPECT--
0 commit comments