diff options
-rw-r--r-- | Zend/tests/bug78787.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/bug78787.phpt b/Zend/tests/bug78787.phpt new file mode 100644 index 0000000000..91d5a9aa83 --- /dev/null +++ b/Zend/tests/bug78787.phpt @@ -0,0 +1,22 @@ +--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=== |