mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
17 lines
255 B
PHP
17 lines
255 B
PHP
--TEST--
|
|
Bug #74922 (Composed class has fatal error with duplicate, equal const properties)
|
|
--FILE--
|
|
<?php
|
|
|
|
const VALUE = true;
|
|
|
|
trait Foo {public $var = VALUE;}
|
|
trait Bar {public $var = VALUE;}
|
|
class Baz {use Foo, Bar;}
|
|
|
|
echo "DONE";
|
|
|
|
?>
|
|
--EXPECT--
|
|
DONE
|