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.
27 lines
421 B
27 lines
421 B
--TEST--
|
|
Bug #24499 (bogus handling of a public property as a private one)
|
|
--FILE--
|
|
<?php
|
|
class Id {
|
|
private $id="priv";
|
|
|
|
public function tester($obj)
|
|
{
|
|
$obj->id = "bar";
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
$id = new Id();
|
|
$obj = new stdClass;
|
|
$obj->foo = "bar";
|
|
$id->tester($obj);
|
|
print_r($obj);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
stdClass Object
|
|
(
|
|
[foo] => bar
|
|
[id] => bar
|
|
)
|
|
|