mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
afec3a9208
Fixes bug #76451, and more importantly lays necessary groundwork for covariant/contravariant types. Bug #76451 is just an edge case, but once covariance is introduced this will become a common problem instead.
13 lines
221 B
PHP
13 lines
221 B
PHP
--TEST--
|
|
Bug #76451: Aliases during inheritance type checks affected by opcache (variation)
|
|
--FILE--
|
|
<?php
|
|
class Foo {}
|
|
class_alias('Foo', 'Bar');
|
|
|
|
require __DIR__ . '/bug76451_2.inc';
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|