bug70156.phpt 516 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --TEST--
  2. Bug #70156 (Segfault in zend_find_alias_name)
  3. --FILE--
  4. <?php
  5. trait T1 {
  6. protected function foo1()
  7. {
  8. $this->bar();
  9. }
  10. }
  11. trait T2 {
  12. protected function foo2()
  13. {
  14. debug_print_backtrace();
  15. }
  16. }
  17. class dummy {
  18. use T1 {
  19. foo1 as private;
  20. }
  21. use T2 {
  22. foo2 as bar;
  23. }
  24. public function __construct()
  25. {
  26. $this->foo1();
  27. }
  28. }
  29. new dummy();
  30. ?>
  31. --EXPECTF--
  32. #0 %s(%d): dummy->bar()
  33. #1 %s(%d): dummy->foo1()
  34. #2 %s(%d): dummy->__construct()