1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
archived-php-src/Zend/tests/traits/bug75607a.phpt
T
2018-10-14 19:45:12 +02:00

37 lines
326 B
PHP

--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)