1--TEST-- 2Bug #53366 (Reflection doesn't get dynamic property value from getProperty()) 3--FILE-- 4<?php 5 6class UserClass { 7} 8 9$myClass = new UserClass; 10$myClass->id = 1000; 11 12$reflect = new ReflectionObject($myClass); 13 14var_dump($reflect->getProperty('id')); 15var_dump($reflect->getProperty('id')->getValue($myClass)); 16 17?> 18--EXPECTF-- 19object(ReflectionProperty)#%d (2) { 20 ["name"]=> 21 string(2) "id" 22 ["class"]=> 23 string(9) "UserClass" 24} 25int(1000) 26