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.
29 lines
420 B
29 lines
420 B
--TEST--
|
|
Child public element should not override parent private element in parent methods
|
|
--SKIPIF--
|
|
<?php die("skip");?>
|
|
--FILE--
|
|
<?php
|
|
class par {
|
|
private $id = "foo";
|
|
|
|
function displayMe()
|
|
{
|
|
print $this->id;
|
|
}
|
|
};
|
|
|
|
class chld extends par {
|
|
public $id = "bar";
|
|
function displayHim()
|
|
{
|
|
parent::displayMe();
|
|
}
|
|
};
|
|
|
|
|
|
$obj = new chld();
|
|
$obj->displayHim();
|
|
?>
|
|
--EXPECT--
|
|
foo
|
|
|