--TEST-- Bug #64239 (ReflectionClass::getMethods() changed behavior) --FILE-- getMethods()); print_r(($method = $obj->getMethod("Bmethod"))); var_dump($method->getName()); var_dump($method->getShortName()); ?> --EXPECT-- Array ( [0] => ReflectionMethod Object ( [name] => Bmethod [class] => A ) [1] => ReflectionMethod Object ( [name] => t2method [class] => A ) ) ReflectionMethod Object ( [name] => Bmethod [class] => A ) string(7) "Bmethod" string(7) "Bmethod"