mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
6d4965febd
Not the first time inheritance of shadow properties causes an issue, thankfully this whole concept is gone in PHP 7.4.
23 lines
284 B
PHP
23 lines
284 B
PHP
--TEST--
|
|
Bug #78787: Segfault with trait overriding inherited private shadow property
|
|
--FILE--
|
|
<?php
|
|
|
|
trait T {
|
|
private $prop;
|
|
}
|
|
class C1 {
|
|
/** Doc comment */
|
|
private $prop;
|
|
}
|
|
class C2 extends C1 {
|
|
}
|
|
class C3 extends C2 {
|
|
use T;
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|