--TEST-- Basic get only property hook --FILE-- prop); try { $test->prop = 0; } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- int(42) Property Test::$prop is read-only