Skip to content

Commit 0b0d4eb

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fixed bug #78787
2 parents abc382e + a3e454a commit 0b0d4eb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Zend/tests/bug78787.phpt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--TEST--
2+
Bug #78787: Segfault with trait overriding inherited private shadow property
3+
--FILE--
4+
<?php
5+
6+
trait T {
7+
private $prop;
8+
}
9+
class C1 {
10+
/** Doc comment */
11+
private $prop;
12+
}
13+
class C2 extends C1 {
14+
}
15+
class C3 extends C2 {
16+
use T;
17+
}
18+
19+
?>
20+
===DONE===
21+
--EXPECT--
22+
===DONE===

0 commit comments

Comments
 (0)