mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
23 lines
274 B
Plaintext
23 lines
274 B
Plaintext
|
--TEST--
|
||
|
Backed property with implicit set
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class C {
|
||
|
public $prop {
|
||
|
get {
|
||
|
echo __METHOD__, "\n";
|
||
|
return $this->prop;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$c = new C();
|
||
|
$c->prop = 42;
|
||
|
var_dump($c->prop);
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
C::$prop::get
|
||
|
int(42)
|