Fix dynamic call in HH\BuiltinEnum::getNames
commit89888ab0984c5d564ad41471016954ed1814a0b2
authorMike Qian <mqian@fb.com>
Fri, 22 Nov 2019 23:26:05 +0000 (22 15:26 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Nov 2019 23:28:10 +0000 (22 15:28 -0800)
tree407bbb9b17e17034587d1a8f3b2257b1970c7d53
parenteb6f8f86b4a1539ce60880af67ae2a4efb3f89a9
Fix dynamic call in HH\BuiltinEnum::getNames

Summary: Load the func instead of using a bare string for the invariant.

Reviewed By: paulbiss

Differential Revision: D18621371

fbshipit-source-id: 74f26e6b172e67cecfb0d2446083f12026383d68
hphp/runtime/ext/enum/ext_enum.cpp
hphp/test/slow/dynamic-calls/enum-get-names.php [new file with mode: 0644]
hphp/test/slow/dynamic-calls/enum-get-names.php.expectf [new file with mode: 0644]
hphp/test/slow/dynamic-calls/enum-get-names.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/dynamic-calls/enum-get-names.php.opts [new file with mode: 0644]