TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
377 B
16 lines
377 B
--TEST--
|
|
Ensure proper inheritance with get_class(anon class instance) used via class_alias (see also bug #70106)
|
|
--FILE--
|
|
<?php
|
|
|
|
function main() {
|
|
class_alias(get_class(new class { protected $foo = 1; }), "AnonBase");
|
|
var_dump((new class extends AnonBase {
|
|
function getFoo() {
|
|
return $this->foo;
|
|
}
|
|
})->getFoo());
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
|