bug69420.phpt 334 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Bug #69420 (Invalid read in zend_std_get_method)
  3. --FILE--
  4. <?php
  5. trait T {
  6. protected function test() {
  7. echo "okey";
  8. }
  9. }
  10. class A {
  11. protected function test() {
  12. }
  13. }
  14. class B extends A {
  15. use T;
  16. public function foo() {
  17. $this->test();
  18. }
  19. }
  20. $b = new B();
  21. $b->foo();
  22. ?>
  23. --EXPECT--
  24. okey