reflection support for first-class enums: enum_exists [1/2]
commitdff095f75b340c4516343784c10da5b8deab80b4
authorEugene Letuchy <eletuchy@fb.com>
Wed, 1 Oct 2014 15:05:47 +0000 (1 08:05 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Thu, 2 Oct 2014 05:10:31 +0000 (1 22:10 -0700)
tree6f5cce31d23dcc3b2782a5772d3f8fddfb80e27f
parent91c3fd078e1e4f169ec9d5bce5ee8d34f286f75a
reflection support for first-class enums: enum_exists [1/2]

Summary: * function enum_exists : similar to {trait|interface}_exists
 * ReflectionClass::isInstantiable now returns false for enums

Reviewed By: @jdelong

Differential Revision: D1589055
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/runtime/ext/std/ext_std_classobj.cpp
hphp/runtime/ext/std/ext_std_classobj.php
hphp/test/slow/reflection/enum.php [new file with mode: 0644]
hphp/test/slow/reflection/enum.php.expectf [new file with mode: 0644]