Fix ResolveClsMethod bug
commit51dc52fa313ff7a83d0c2f74e12e3000d561e588
authorYu-Jung Lo <ylo@fb.com>
Fri, 22 Mar 2019 16:12:03 +0000 (22 09:12 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 22 Mar 2019 16:16:22 +0000 (22 09:16 -0700)
tree27954683e2d0be54cea4f0b43c70154ecb2f86c0
parentb3df6b17e6d770d6948bde0cb9631aa562338eb4
Fix ResolveClsMethod bug

Summary: When resolving Class* and Func* for ClassMeth, Class* can be resolved to the actual Class where the function is defined. However, what we really need is the original class that user gave.

Reviewed By: markw65

Differential Revision: D14505140

fbshipit-source-id: 5304f8b5b9a864c47ad26b64d8c9e0f5244f9616
hphp/runtime/base/builtin-functions.cpp
hphp/runtime/base/builtin-functions.h
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/irgen-call.cpp
hphp/test/slow/global_func/class_meth/class-meth-str.php [new file with mode: 0644]
hphp/test/slow/global_func/class_meth/class-meth-str.php.disabled [deleted file]
hphp/test/slow/global_func/class_meth/class-meth-str.php.expect