Implement __toString() for reflection classes
commit6ab8b0b24fe2586c12e4fb93017eb7d788704c7c
authorSara Golemon <sgolemon@fb.com>
Thu, 5 Jun 2014 16:17:49 +0000 (5 09:17 -0700)
committerfacebook-github-bot <github@fb.com>
Thu, 5 Jun 2014 21:17:25 +0000 (5 14:17 -0700)
tree5495f1431f8a518dc00fd3fd7c3800cbf39da4d3
parent3f4dd273473a65a8ece6c71acf569788a005afc5
Implement __toString() for reflection classes

Summary: ReflectionFunction
ReflectionMethod
ReflectionClass
ReflectionObject
ReflectionProperty
ReflectionParameter

Also...
* Found/fixed a crash in ReflectionClass::getOrderedConstants()
* Added missing function ReflectionClass::isIterable()

Closes #1571

Reviewed By: @fredemmott

Differential Revision: D1363317
12 files changed:
hphp/runtime/ext/reflection/ext_reflection-classes.php
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/runtime/ext/reflection/ext_reflection_hni.php
hphp/test/quick/reflection.php.expectf
hphp/test/slow/reflection/ReflectionClass_toString_001.php [new file with mode: 0644]
hphp/test/slow/reflection/ReflectionClass_toString_001.php.expectf [new file with mode: 0644]
hphp/test/slow/reflection/ReflectionFunction_toString_001.php [new file with mode: 0644]
hphp/test/slow/reflection/ReflectionFunction_toString_001.php.expectf [new file with mode: 0644]
hphp/test/slow/reflection/ReflectionFunction_toString_002.php [new file with mode: 0644]
hphp/test/slow/reflection/ReflectionFunction_toString_002.php.expect [new file with mode: 0644]
hphp/test/slow/reflection/param_tostring_hh.php.expect
hphp/test/slow/reflection/param_tostring_zendcompat.php.expect