<?php
trait test{
public function __construct()
{
echo 'test';
}
}
class myClass{
use test {
test::__construct as private __tConstruct;
}
public function __construct(){
$this->__tConstruct();
}
}
new myClass();
?>
PD9waHAKCnRyYWl0IHRlc3R7CiAgICBwdWJsaWMgZnVuY3Rpb24gX19jb25zdHJ1Y3QoKQogICAgewogICAgICAgIGVjaG8gJ3Rlc3QnOwogICAgfQp9CgpjbGFzcyBteUNsYXNzewogICAgdXNlIHRlc3QgewogICAgICAgIHRlc3Q6Ol9fY29uc3RydWN0IGFzIHByaXZhdGUgX190Q29uc3RydWN0OwogICAgfQogICAgcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KCl7CiAgICAgICAgJHRoaXMtPl9fdENvbnN0cnVjdCgpOwogICAgfQp9Cm5ldyBteUNsYXNzKCk7Cgo/Pg==