--TEST-- Asymmetric visibility reference in forbidden scope --FILE-- 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