summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug75607a.phpt
blob: fb2ecd410fa3b0c03db83c329e503a6dc0620dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--TEST--
Bug #75607 (Comparison of initial static properties failing)
--FILE--
<?php

trait T1
{
    public static $prop1 = 1;
}

trait T2
{
    public static $prop1 = 1;
}

class Base
{
    use T1;
}

class Child extends base
{

}

class Grand extends Child
{
    use T2;
}

$c = new Grand();
var_dump($c::$prop1);

?>
--EXPECT--
int(1)