hiphop-php /hphp/test/zend/bad/ext/reflection/tests/bug63399.php

Language PHP Lines 28
MD5 Hash 42a62e5ba347f3059e0a8edee40ff8c1 Estimated Cost $444 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 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
<?php
trait Trait1 {
        public function run() {}
        public function say() {}
}

trait Trait2 {
        public function run() {}
        public function say() {}
}

class MyClass
{
    use Trait1, Trait2 {
        Trait1::run as execute;
        Trait1::say insteadof Trait2;
        Trait2::run insteadof Trait1;
        Trait2::say as talk;
    }
}

$ref = new ReflectionClass('MyClass');

print_r($ref->getTraitAliases());
print_r($ref->getTraits());

?>
Back to Top