--TEST-- Bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute) --FILE-- getValue($o); } catch (Exception $e) { echo 'Caught: ' . $e->getMessage() . "\n"; } ?> --EXPECT-- Caught: Cannot access non-public property TestClass::$p