make first class enums non-extendable by regular classes
commit91c3fd078e1e4f169ec9d5bce5ee8d34f286f75a
authorEugene Letuchy <eletuchy@fb.com>
Thu, 2 Oct 2014 00:29:06 +0000 (1 17:29 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Thu, 2 Oct 2014 05:10:31 +0000 (1 22:10 -0700)
tree198144df92084b2efb165f267dbad378eb55a3d0
parentc96d82a15947121d19dd7a64c60c7a2165dab107
make first class enums non-extendable by regular classes

Summary: ... and therefore ReflectionClass::isFinal becomes true for
 ReflectionClass of enums.

Reviewed By: @jdelong

Differential Revision: D1589531
hphp/compiler/analysis/emitter.cpp
hphp/runtime/vm/class.cpp
hphp/test/quick/fc_enum_10.php [new file with mode: 0644]
hphp/test/quick/fc_enum_10.php.expectf [new file with mode: 0644]