2015-07-28 08:39:58 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #70156 (Segfault in zend_find_alias_name)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
trait T1 {
|
2020-02-03 21:52:20 +00:00
|
|
|
protected function foo1()
|
|
|
|
{
|
|
|
|
$this->bar();
|
|
|
|
}
|
2015-07-28 08:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
trait T2 {
|
2020-02-03 21:52:20 +00:00
|
|
|
protected function foo2()
|
|
|
|
{
|
|
|
|
debug_print_backtrace();
|
|
|
|
}
|
2015-07-28 08:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class dummy {
|
2020-02-03 21:52:20 +00:00
|
|
|
use T1 {
|
|
|
|
foo1 as private;
|
|
|
|
}
|
|
|
|
use T2 {
|
|
|
|
foo2 as bar;
|
|
|
|
}
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->foo1();
|
|
|
|
}
|
2015-07-28 08:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
new dummy();
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2021-05-18 09:43:37 +00:00
|
|
|
#0 %s(%d): dummy->bar()
|
|
|
|
#1 %s(%d): dummy->foo1()
|
|
|
|
#2 %s(%d): dummy->__construct()
|