xref: /php-src/Zend/tests/traits/bug75607a.phpt (revision f8d79582)
1--TEST--
2Bug #75607 (Comparison of initial static properties failing)
3--FILE--
4<?php
5
6trait T1
7{
8    public static $prop1 = 1;
9}
10
11trait T2
12{
13    public static $prop1 = 1;
14}
15
16class Base
17{
18    use T1;
19}
20
21class Child extends base
22{
23
24}
25
26class Grand extends Child
27{
28    use T2;
29}
30
31$c = new Grand();
32var_dump($c::$prop1);
33
34?>
35--EXPECT--
36int(1)
37