summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69420.phpt
blob: 060d69c8396f243facd6163abeedd3184808db55 (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