diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-09 10:41:06 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-24 09:30:13 +0200 |
commit | afec3a9208c2a34762a87cb797f28e7e61c88cca (patch) | |
tree | 78e941d6b589a16ec622d8510fcd195cb736a339 /Zend/tests/bug76451_2.phpt | |
parent | 71ce7d32eaa2e6e55ddde55c729a046af81e7a0f (diff) | |
download | php-git-afec3a9208c2a34762a87cb797f28e7e61c88cca.tar.gz |
Avoid early-binding on unresolved types
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.
Diffstat (limited to 'Zend/tests/bug76451_2.phpt')
-rw-r--r-- | Zend/tests/bug76451_2.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug76451_2.phpt b/Zend/tests/bug76451_2.phpt new file mode 100644 index 0000000000..75cacccf30 --- /dev/null +++ b/Zend/tests/bug76451_2.phpt @@ -0,0 +1,12 @@ +--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=== |