2
Bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute)
13
$r = new ReflectionProperty($o, 'p');
17
$x = $r->getValue($o);
21
echo 'Caught: ' . $e->getMessage() . "\n";
27
Caught: Cannot access non-public member TestClass::p