mirror of
https://github.com/php/php-src.git
synced 2025-01-15 08:14:23 +08:00
31 lines
301 B
PHP
31 lines
301 B
PHP
--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
|