summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69420.phpt
blob: 87f30fb47495c184fb3aeee1e216a04d1fc21596 (plain)
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
28
29
30
--TEST--
Bug #69420 (Invalid read in zend_std_get_method)
--FILE--
<?php

trait T {
    protected function test() {
        echo "okey";
    }
}


class A {
    protected function test() {
    }
}

class B extends A {
    use T;
    public function foo() {
        $this->test();
    }
}


$b = new B();
$b->foo();
?>
--EXPECT--
okey