[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
kmspico
/
bin
/
lib
/
[
Home
]
File: reference_2.phpt
--TEST-- Asymmetric visibility reference in forbidden scope --FILE-- <?php class C { public private(set) int $prop = 1; } function test($c) { $prop = &$c->prop; $prop = 42; } try { test(new C()); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { test(new C()); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Cannot indirectly modify private(set) property C::$prop from global scope Cannot indirectly modify private(set) property C::$prop from global scope